src/video/SDL_video.c
changeset 1952 420716272158
parent 1945 3182150b470f
child 1956 ba0d62354872
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         }