| Summary: | SDL_render_gl.c is missing some code when GL_ARB_texture_rectangle is active. | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Pallav Nawani <pallavnawani> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | All | ||
Fixed, thanks! http://hg.libsdl.org/SDL/rev/fa00544b1374 |
In SDL_render_gl.c, after line 366, the code should be altered as follows: if (SDL_GL_ExtensionSupported("GL_ARB_texture_rectangle") || SDL_GL_ExtensionSupported("GL_EXT_texture_rectangle")) { data->GL_ARB_texture_rectangle_supported = SDL_TRUE; data->glGetIntegerv(GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB, &value); renderer->info.max_texture_width = value; renderer->info.max_texture_height = value; }