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 - SDL_render_gl.c is missing some code when GL_ARB_texture_rectangle is active.
Summary: SDL_render_gl.c is missing some code when GL_ARB_texture_rectangle is active.
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: All All
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-02 09:46 UTC by Pallav Nawani
Modified: 2012-09-23 01:51 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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