wgl/glx: Fix attribute list for SDL_GL_FLOATBUFFERS
This commit fixes the attribute list in the WGL and GLX code when requesting a floating point pixel format. The name of the attribute was missing in the list. Fixes libsdl-org#10189
This commit is contained in:
@@ -641,6 +641,7 @@ static int WIN_GL_SetupWindowInternal(SDL_VideoDevice *_this, SDL_Window *window
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (_this->gl_config.floatbuffers) {
|
if (_this->gl_config.floatbuffers) {
|
||||||
|
*iAttr++ = WGL_PIXEL_TYPE_ARB;
|
||||||
*iAttr++ = WGL_TYPE_RGBA_FLOAT_ARB;
|
*iAttr++ = WGL_TYPE_RGBA_FLOAT_ARB;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -571,6 +571,7 @@ static int X11_GL_GetAttributes(SDL_VideoDevice *_this, Display *display, int sc
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (_this->gl_config.floatbuffers) {
|
if (_this->gl_config.floatbuffers) {
|
||||||
|
attribs[i++] = GLX_RENDER_TYPE;
|
||||||
attribs[i++] = GLX_RGBA_FLOAT_TYPE_ARB;
|
attribs[i++] = GLX_RGBA_FLOAT_TYPE_ARB;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user