Reputation: 23
This line of code:
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST_MIPMAP_NEAREST);
generate error 0x0500
(GL_INVALID_ENUM), but all the rendering process works as before. What could be the problem and how could it be solved ?
Upvotes: 2
Views: 1046
Reputation: 473192
The error value 0x500 is GL_INVALID_ENUM
. That means you have passed an enumeration to a function where that enum is not a valid parameter.
GL_NEAREST_MIPMAP_LINEAR
is not a valid GL_TEXTURE_MAG_FILTER
option.
Upvotes: 3