glEnable(GL_TEXTURE_2D) returns GL_INVALID_ENUM

This topic contains 2 replies, has 2 voices, and was last updated by  nitknight 7 years, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30270

    nitknight
    Member

    I downloaded the latest PVR SDK (2.06.26.0649) for OpenGL ES 2.0 for Win 32.

    The problem is that any call to glEnable(GL_TEXTURE_2D) returns error code 500 : GL_INVALID_ENUM. The same happens with glDisable(GL_TEXTURE_2D).

     

    Is this a bug in the emulator or is it OpenGL ES 2.0 standard that the GL_TEXTURE_2D should never be passed?
    #34293

    Joe Davis
    Member

    The calls you have mentioned are not valid in OpenGL ES 2.0. You can lookup acceptable parameters to the glEnable() function in the Khronos OpenGL ES 2.0 reference guide here.

    The source code for the texturing training course within the SDK provides a simple example of how you should load, use and destroy textures within your application.

    #34294

    nitknight
    Member

    Hi Joe,

     Thanks a lot for quick response.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.