comparison src/video/SDL_video.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 3182150b470f
children ba0d62354872
comparison
equal deleted inserted replaced
1951:7177581dc9fa 1952:420716272158
274 return (-1); 274 return (-1);
275 } 275 }
276 276
277 /* The software renderer is always available */ 277 /* The software renderer is always available */
278 for (i = 0; i < _this->num_displays; ++i) { 278 for (i = 0; i < _this->num_displays; ++i) {
279 #if SDL_VIDEO_OPENGL 279 #if SDL_VIDEO_RENDER_OGL
280 SDL_AddRenderDriver(i, &GL_RenderDriver); 280 SDL_AddRenderDriver(i, &GL_RenderDriver);
281 #endif 281 #endif
282 if (_this->displays[i].num_render_drivers > 0) { 282 if (_this->displays[i].num_render_drivers > 0) {
283 SDL_AddRenderDriver(i, &SW_RenderDriver); 283 SDL_AddRenderDriver(i, &SW_RenderDriver);
284 } 284 }