It is possible to use multi-thread in GLFW. However, the initialization and drawing have to be done in the same thread.
Tag: opengl
Default values of GL_TEXTURE_MIN_FILTER and GL_TEXTURE_MAG_FILTER
From the documentation available at https://registry.khronos.org/OpenGL-Refpages/gl4/html/glTexParameter.xhtml, the default or initial values are:
GL_TEXTURE_MIN_FILTER = GL_NEAREST_MIPMAP_LINEAR
GL_TEXTURE_MAG_FILTER = GL_LINEAR
This makes glGenerateMipmap
necessary after glTexImage2D
. Otherwise, the texture rendering will not work properly.