Skip to content

Commit 8af443e

Browse files
committed
Force SDR framebuffer. #99
1 parent 2dd2bb1 commit 8af443e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

platforms/shared/desktop/application.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,12 @@ static bool sdl_init(void)
289289
Log("Using SDL %d.%d.%d", application_sdl_version_major, application_sdl_version_minor, application_sdl_version_patch);
290290

291291
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
292+
SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
293+
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);
294+
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);
295+
SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8);
296+
SDL_GL_SetAttribute(SDL_GL_BUFFER_SIZE, 32);
297+
SDL_GL_SetAttribute(SDL_GL_FLOATBUFFERS, 0);
292298
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
293299
SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8);
294300
#if defined(SDL_GL_FRAMEBUFFER_SRGB_CAPABLE)

0 commit comments

Comments
 (0)