diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2018-02-19 22:23:16 +0000 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2018-03-12 15:08:40 +0000 |
commit | 65f16d11afd03b609edca8d67497a62df86729f7 (patch) | |
tree | f7a2a00f712aa330a1e56bd12932c2b1cddca6de /hw | |
parent | 57339cf6a90d9c8b1dc9b18c7f33b35ab4114924 (diff) |
Correctly set renderType for fbConfigs for floating point pixelFormats
This looks some kind of merge error. Since "Add support for float format
fbconfig GLX extensions", the renderType is set earlier, when we decode the
pixel type.
Diffstat (limited to 'hw')
-rw-r--r-- | hw/xwin/glx/indirect.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/hw/xwin/glx/indirect.c b/hw/xwin/glx/indirect.c index 4948807d9..6c700a254 100644 --- a/hw/xwin/glx/indirect.c +++ b/hw/xwin/glx/indirect.c @@ -2442,21 +2442,6 @@ glxWinCreateConfigsExt(HDC hdc, glxWinScreen * screen, PixelFormatRejectStats * | (ATTR_VALUE(WGL_DRAW_TO_BITMAP_ARB, 0) ? GLX_PIXMAP_BIT : 0) | (ATTR_VALUE(WGL_DRAW_TO_PBUFFER_ARB, 0) ? GLX_PBUFFER_BIT : 0)); - /* - Assume OpenGL RGBA rendering is available on all visuals - (it is specified to render to red component in single-channel visuals, - if supported, but there doesn't seem to be any mechanism to check if it - is supported) - - Color index rendering is only supported on single-channel visuals - */ - if (c->base.visualType == GLX_STATIC_COLOR) { - c->base.renderType = GLX_RGBA_BIT | GLX_COLOR_INDEX_BIT; - } - else { - c->base.renderType = GLX_RGBA_BIT; - } - c->base.fbconfigID = -1; // will be set by __glXScreenInit() /* SGIX_pbuffer / GLX 1.3 */ |