Skip to content

Commit c6935f9

Browse files
committed
Fixed EGL framebuffer colors on AMD drivers
1 parent a4c269c commit c6935f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/video/windows/SDL_windowsopengl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,9 +659,9 @@ static bool WIN_GL_SetupWindowInternal(SDL_VideoDevice *_this, SDL_Window *windo
659659
*iAttr++ = WGL_TYPE_RGBA_FLOAT_ARB;
660660
}
661661

662-
if ((_this->gl_config.framebuffer_srgb_capable >= 0) && _this->gl_data->HAS_WGL_ARB_framebuffer_sRGB) {
662+
if (_this->gl_data->HAS_WGL_ARB_framebuffer_sRGB) {
663663
*iAttr++ = WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB;
664-
*iAttr++ = _this->gl_config.framebuffer_srgb_capable ? GL_TRUE : GL_FALSE;
664+
*iAttr++ = (_this->gl_config.framebuffer_srgb_capable > 0) ? GL_TRUE : GL_FALSE;
665665
}
666666

667667
/* We always choose either FULL or NO accel on Windows, because of flaky

0 commit comments

Comments
 (0)