| Summary: | OpenGL ES 1.1 renderer: SDL_UpdateTexture breaks later function calls (missing glDisable) | ||
|---|---|---|---|
| Product: | SDL | Reporter: | ny00 |
| Component: | render | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | Android (All) | ||
| Attachments: | Patch + Sample program + Screenshots | ||
Fixed, thanks! https://hg.libsdl.org/SDL/rev/d1967bb54276 |
Created attachment 2560 [details] Patch + Sample program + Screenshots Using the OpenGL ES 1.1 renderer, after updating a texture with SDL_UpdateTexture (or SDL_UnlockTexture), a following call to SDL_RenderFillRect draws a rectangle with the wrong color (which appears to be the same as the texture's top-left pixel). Comparing SDL_render_gles.c:GLES_UpdateTexture to SDL_render_gl.c:GL_UpdateTexture, a missing call to glDisable appears to be the cause. After adding it back, the bug is resolved. A ZIP file is attached with the following contents: - A patch. - A test program. - Two screenshots (with and without the bug).