| Summary: | OpenGLES2 Renderer : GL_INVALID_ENUM <- glDisable(GL_TEXTURE_2D) | ||
|---|---|---|---|
| Product: | SDL | Reporter: | PoopiSan <poopisan> |
| Component: | video | Assignee: | Ryan C. Gordon <icculus> |
| Status: | CLOSED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | icculus |
| Version: | HG 2.0 | ||
| Hardware: | ARM | ||
| OS: | Other | ||
Yeah, glDisable(GL_TEXTURE_2D) is legal in GLES 1.1, but not 2.0. We never have a glEnable() call anywhere, so I think this was just leftover code when moving from 1.1? It's safe to just remove it, I think. --ryan. I _think_ this is fixed in hg changeset f4a3c5a68119, but I can't test the GLES2 renderer here. Feel free to reopen this bug if I broke it worse. :) --ryan. Seems to be working fine. |
During the OpenGLES function call analysis ( XCode Instrument tool for iPad )I got the following error: GL_INVALID_ENUM <- glDisable(GL_TEXTURE_2D) Furhter analysis narrows this down to function: GLES2_UnbindTexture (SDL_Renderer * renderer, SDL_Texture *texture) and line: data->glDisable(texturedata->texture_type); which seems to be incorrect according to the : http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDisable.xml