I performed glGenerateMipmap(GL_TEXTURE_2D)
on a texture that used as FBO rendering target. It works well on several Windows computers, but when I test it on a Linux laptop with Intel HD3000 graphics card, it raises GL_INVALID_OPERATION error.
I checked the program with AMD CodeXL. When this error raised, the GL_TEXTURE_BINDING_2D
has correct value, and bounded texture has correct properties:
# of mipmaps: 10 levels;
dimensions: 600x520
internal format: GL_DEPTH_STENCIL;
GL_TEXTURE_MIN_FILTER: GL_LINEAR_MIPMAP_LINEAR.
GL_TEXTURE_MIN_LOD: -1000
GL_TEXTURE_MAX_LOD: 1000
GL_TEXTURE_BASE_LEVEL: 0
GL_TEXTURE_MAX_LEVEL: 1000