Mesa (master): st/wgl: allow WGL_BIND_TO_TEXTURE_RGB_ARB for RGBA visuals

Brian Paul brianp at kemper.freedesktop.org
Sat Apr 29 04:05:54 UTC 2017


Module: Mesa
Branch: master
Commit: ba8e2ea19a0ac97bced2cfae15668443b2b3fb07
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ba8e2ea19a0ac97bced2cfae15668443b2b3fb07

Author: Charmaine Lee <charmainel at vmware.com>
Date:   Wed May 18 10:11:25 2016 -0700

st/wgl: allow WGL_BIND_TO_TEXTURE_RGB_ARB for RGBA visuals

We do not need to restrict WGL_BIND_TO_TEXTURE_RGB_ARB to
RGB visuals only. It can be supported with RGBA visuals as well.

This fixes the early exit of cinebench-r15-test trace.

Tested with cinebench-r15, piglit, glretrace.

Reviewed-by: Brian Paul <brianp at vmware.com>

---

 src/gallium/state_trackers/wgl/stw_pixelformat.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/state_trackers/wgl/stw_pixelformat.c b/src/gallium/state_trackers/wgl/stw_pixelformat.c
index 8407b9e1ae..011a86ac5a 100644
--- a/src/gallium/state_trackers/wgl/stw_pixelformat.c
+++ b/src/gallium/state_trackers/wgl/stw_pixelformat.c
@@ -208,8 +208,8 @@ stw_pixelformat_add(
    /* WGL_ARB_render_texture */
    if (color->bits.alpha)
       pfi->bindToTextureRGBA = TRUE;
-   else
-      pfi->bindToTextureRGB = TRUE;
+
+   pfi->bindToTextureRGB = TRUE;
 
    ++stw_dev->pixelformat_extended_count;
    




More information about the mesa-commit mailing list