Removed gamma support since it wasn't widely used and not well supported.
This commit is contained in:
parent
c4f308a1be
commit
e0f869b698
24 changed files with 28 additions and 1137 deletions
|
@ -365,22 +365,9 @@ X11_GL_GetVisual(_THIS, Display * display, int screen)
|
|||
GLX_SLOW_VISUAL_EXT;
|
||||
}
|
||||
|
||||
#ifdef GLX_DIRECT_COLOR /* Try for a DirectColor visual for gamma support */
|
||||
if (X11_UseDirectColorVisuals()) {
|
||||
attribs[i++] = GLX_X_VISUAL_TYPE;
|
||||
attribs[i++] = GLX_DIRECT_COLOR;
|
||||
}
|
||||
#endif
|
||||
|
||||
attribs[i++] = None;
|
||||
|
||||
vinfo = _this->gl_data->glXChooseVisual(display, screen, attribs);
|
||||
#ifdef GLX_DIRECT_COLOR
|
||||
if (!vinfo && X11_UseDirectColorVisuals()) { /* No DirectColor visual? Try again.. */
|
||||
attribs[i - 3] = None;
|
||||
vinfo = _this->gl_data->glXChooseVisual(display, screen, attribs);
|
||||
}
|
||||
#endif
|
||||
if (!vinfo) {
|
||||
SDL_SetError("Couldn't find matching GLX visual");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue