Mercurial > sdl-ios-xcode
diff src/video/SDL_renderer_gl.c @ 1952:420716272158
Implemented X11 OpenGL support.
Added support for the SDL_VIDEO_OPENGL environment variable.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 28 Jul 2006 08:43:17 +0000 |
parents | 861bc36f0ab3 |
children | a788656ca29a |
line wrap: on
line diff
--- a/src/video/SDL_renderer_gl.c Thu Jul 27 06:53:23 2006 +0000 +++ b/src/video/SDL_renderer_gl.c Fri Jul 28 08:43:17 2006 +0000 @@ -21,7 +21,7 @@ */ #include "SDL_config.h" -#if SDL_VIDEO_OPENGL +#if SDL_VIDEO_RENDER_OGL #include "SDL_video.h" #include "SDL_opengl.h" @@ -197,6 +197,7 @@ { SDL_Renderer *renderer; GL_RenderData *data; + GLint value; if (!(window->flags & SDL_WINDOW_OPENGL)) { if (SDL_RecreateWindow(window, window->flags | SDL_WINDOW_OPENGL) < 0) { @@ -261,10 +262,10 @@ renderer->info.flags |= SDL_Renderer_PresentVSync; } - data->glGetIntegerv(GL_MAX_TEXTURE_SIZE, - &renderer->info.max_texture_width); - data->glGetIntegerv(GL_MAX_TEXTURE_SIZE, - &renderer->info.max_texture_height); + data->glGetIntegerv(GL_MAX_TEXTURE_SIZE, &value); + renderer->info.max_texture_width = value; + data->glGetIntegerv(GL_MAX_TEXTURE_SIZE, &value); + renderer->info.max_texture_height = value; if (SDL_GL_ExtensionSupported("GL_ARB_texture_rectangle") || SDL_GL_ExtensionSupported("GL_EXT_texture_rectangle")) { @@ -706,6 +707,6 @@ SDL_free(renderer); } -#endif /* SDL_VIDEO_OPENGL */ +#endif /* SDL_VIDEO_RENDER_OGL */ /* vi: set ts=4 sw=4 expandtab: */