Left a "FIXME" too remind me later, that gamma needs attention in MAME.

This commit is contained in:
Couriersud 2014-05-17 23:57:18 +00:00
parent 2f867f94f8
commit 5ff6ac66a9

View File

@ -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)
{