We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1591

Summary: SDL_render_gl.c is missing some code when GL_ARB_texture_rectangle is active.
Product: SDL Reporter: Pallav Nawani <pallavnawani>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: All   
OS: All   

Description Pallav Nawani 2012-09-02 09:46:37 UTC
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;
    }
Comment 1 Sam Lantinga 2012-09-23 01:51:10 UTC
Fixed, thanks!
http://hg.libsdl.org/SDL/rev/fa00544b1374