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-05-13 18:21:59 +0100 |
commit | 6c5e6a7d37c4dc604e00fcbbef089b30be6a9ef7 (patch) | |
tree | 260ed4e0db9b35838a21496e45df2af942bfdf3c | |
parent | 904ffd100ce594ead3885a337ecfffd0bfa5aaed (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.
-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 a17254585..dfce17784 100644 --- a/hw/xwin/glx/indirect.c +++ b/hw/xwin/glx/indirect.c @@ -2435,21 +2435,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 */ |