src/video/windows/SDL_windowsopengl.c
changeset 5446 6ac8b0ac645e
parent 5262 b530ef003506
child 5535 96594ac5fd1a
equal deleted inserted replaced
5445:b2bcc3c36fa3 5446:6ac8b0ac645e
   407     /* setup WGL_ARB_pixel_format attribs */
   407     /* setup WGL_ARB_pixel_format attribs */
   408     iAttr = &iAttribs[0];
   408     iAttr = &iAttribs[0];
   409 
   409 
   410     *iAttr++ = WGL_DRAW_TO_WINDOW_ARB;
   410     *iAttr++ = WGL_DRAW_TO_WINDOW_ARB;
   411     *iAttr++ = GL_TRUE;
   411     *iAttr++ = GL_TRUE;
   412     *iAttr++ = WGL_ACCELERATION_ARB;
       
   413     *iAttr++ = WGL_FULL_ACCELERATION_ARB;
       
   414     *iAttr++ = WGL_RED_BITS_ARB;
   412     *iAttr++ = WGL_RED_BITS_ARB;
   415     *iAttr++ = _this->gl_config.red_size;
   413     *iAttr++ = _this->gl_config.red_size;
   416     *iAttr++ = WGL_GREEN_BITS_ARB;
   414     *iAttr++ = WGL_GREEN_BITS_ARB;
   417     *iAttr++ = _this->gl_config.green_size;
   415     *iAttr++ = _this->gl_config.green_size;
   418     *iAttr++ = WGL_BLUE_BITS_ARB;
   416     *iAttr++ = WGL_BLUE_BITS_ARB;
   467     if (_this->gl_config.multisamplesamples) {
   465     if (_this->gl_config.multisamplesamples) {
   468         *iAttr++ = WGL_SAMPLES_ARB;
   466         *iAttr++ = WGL_SAMPLES_ARB;
   469         *iAttr++ = _this->gl_config.multisamplesamples;
   467         *iAttr++ = _this->gl_config.multisamplesamples;
   470     }
   468     }
   471 
   469 
   472     if (_this->gl_config.accelerated >= 0) {
   470     *iAttr++ = WGL_ACCELERATION_ARB;
   473         *iAttr++ = WGL_ACCELERATION_ARB;
   471     *iAttr++ = (_this->gl_config.accelerated ? WGL_FULL_ACCELERATION_ARB :
   474         *iAttr++ =
   472                                                WGL_NO_ACCELERATION_ARB);
   475             (_this->gl_config.accelerated ? WGL_GENERIC_ACCELERATION_ARB :
       
   476              WGL_NO_ACCELERATION_ARB);
       
   477     }
       
   478 
   473 
   479     *iAttr = 0;
   474     *iAttr = 0;
   480 
   475 
   481     /* Choose and set the closest available pixel format */
   476     /* Choose and set the closest available pixel format */
   482     pixel_format = WIN_GL_ChoosePixelFormatARB(_this, iAttribs, fAttribs);
   477     pixel_format = WIN_GL_ChoosePixelFormatARB(_this, iAttribs, fAttribs);