src/video/windows/SDL_windowsopengl.c
changeset 7853 4861edda71d1
parent 7559 0dd3b05797f9
child 7865 f2a42ca4ddf0
equal deleted inserted replaced
7852:042ad8cbb550 7853:4861edda71d1
    63 #endif
    63 #endif
    64 
    64 
    65 #ifndef WGL_EXT_create_context_es_profile
    65 #ifndef WGL_EXT_create_context_es_profile
    66 #define WGL_EXT_create_context_es_profile
    66 #define WGL_EXT_create_context_es_profile
    67 #define WGL_CONTEXT_ES_PROFILE_BIT_EXT            0x00000004
    67 #define WGL_CONTEXT_ES_PROFILE_BIT_EXT            0x00000004
       
    68 #endif
       
    69 
       
    70 #ifndef WGL_ARB_framebuffer_sRGB
       
    71 #define WGL_ARB_framebuffer_sRGB
       
    72 #define WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB                0x20A9
    68 #endif
    73 #endif
    69 
    74 
    70 typedef HGLRC(APIENTRYP PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC hDC,
    75 typedef HGLRC(APIENTRYP PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC hDC,
    71                                                             HGLRC
    76                                                             HGLRC
    72                                                             hShareContext,
    77                                                             hShareContext,
   493     if (_this->gl_config.multisamplesamples) {
   498     if (_this->gl_config.multisamplesamples) {
   494         *iAttr++ = WGL_SAMPLES_ARB;
   499         *iAttr++ = WGL_SAMPLES_ARB;
   495         *iAttr++ = _this->gl_config.multisamplesamples;
   500         *iAttr++ = _this->gl_config.multisamplesamples;
   496     }
   501     }
   497 
   502 
       
   503     if (_this->gl_config.framebuffer_srgb_capable) {
       
   504         *iAttr++ = WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB;
       
   505         *iAttr++ = _this->gl_config.framebuffer_srgb_capable;
       
   506     }
       
   507 
   498     /* We always choose either FULL or NO accel on Windows, because of flaky
   508     /* We always choose either FULL or NO accel on Windows, because of flaky
   499        drivers. If the app didn't specify, we use FULL, because that's
   509        drivers. If the app didn't specify, we use FULL, because that's
   500        probably what they wanted (and if you didn't care and got FULL, that's
   510        probably what they wanted (and if you didn't care and got FULL, that's
   501        a perfectly valid result in any case). */
   511        a perfectly valid result in any case). */
   502     *iAttr++ = WGL_ACCELERATION_ARB;
   512     *iAttr++ = WGL_ACCELERATION_ARB;