src/video/windows/SDL_windowsopengl.c
changeset 5624 84d302e859d1
parent 5535 96594ac5fd1a
child 5644 f74f1a736dd9
equal deleted inserted replaced
5622:08e941dad8e9 5624:84d302e859d1
   464     if (_this->gl_config.multisamplesamples) {
   464     if (_this->gl_config.multisamplesamples) {
   465         *iAttr++ = WGL_SAMPLES_ARB;
   465         *iAttr++ = WGL_SAMPLES_ARB;
   466         *iAttr++ = _this->gl_config.multisamplesamples;
   466         *iAttr++ = _this->gl_config.multisamplesamples;
   467     }
   467     }
   468 
   468 
   469     *iAttr++ = WGL_ACCELERATION_ARB;
   469     if ( this->gl_config.accelerated >= 0 ) {
   470     *iAttr++ = (_this->gl_config.accelerated ? WGL_FULL_ACCELERATION_ARB :
   470         *iAttr++ = WGL_ACCELERATION_ARB;
   471                                                WGL_NO_ACCELERATION_ARB);
   471         *iAttr++ = (_this->gl_config.accelerated ? WGL_FULL_ACCELERATION_ARB :
       
   472                                                    WGL_NO_ACCELERATION_ARB);
       
   473     }
   472 
   474 
   473     *iAttr = 0;
   475     *iAttr = 0;
   474 
   476 
   475     /* Choose and set the closest available pixel format */
   477     /* Choose and set the closest available pixel format */
   476     pixel_format = WIN_GL_ChoosePixelFormatARB(_this, iAttribs, fAttribs);
   478     pixel_format = WIN_GL_ChoosePixelFormatARB(_this, iAttribs, fAttribs);