From 5ff6ac66a9e911c7a05f366654496eb3ca39095d Mon Sep 17 00:00:00 2001 From: Couriersud Date: Sat, 17 May 2014 23:57:18 +0000 Subject: [PATCH] Left a "FIXME" too remind me later, that gamma needs attention in MAME. --- src/osd/sdl/drawogl.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/osd/sdl/drawogl.c b/src/osd/sdl/drawogl.c index 22c4d2f28af..662969e2f87 100644 --- a/src/osd/sdl/drawogl.c +++ b/src/osd/sdl/drawogl.c @@ -502,6 +502,14 @@ static int drawogl_window_create(sdl_window_info *window, int width, int height) sdl->extra_flags |= SDL_WINDOW_OPENGL; SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 ); + + /* FIXME: A reminder that gamma is wrong throughout MAME. Currently, SDL2.0 doesn't seem to + * support the following attribute although my hardware lists GL_ARB_framebuffer_sRGB as an extension. + * + * SDL_GL_SetAttribute( SDL_GL_FRAMEBUFFER_SRGB_CAPABLE, 1 ); + * + */ + //Moved into init //load_gl_lib(window->machine()); @@ -592,6 +600,8 @@ static int drawogl_window_create(sdl_window_info *window, int width, int height) extstr = (char *)glGetString(GL_EXTENSIONS); vendor = (char *)glGetString(GL_VENDOR); + //printf("%s\n", extstr); + // print out the driver info for debugging if (!shown_video_info) {