[Piglit] [PATCH] depth_texture_mode_and_swizzle: request alpha channel

Brian Paul brianp at vmware.com
Sat Jan 26 09:34:34 PST 2013


Note that PIGLIT_GL_VISUAL_RGB == PIGLIT_GL_VISUAL_RGBA so the
later doesn't necessarily get a window with an alpha channel.
Need to add the PIGLIT_GL_VISUAL_ALPHA flag.

Fixes http://bugs.freedesktop.org/show_bug.cgi?id=59872

v2: fix commit message
---
 .../depth_texture_mode_and_swizzle.c               |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/spec/ext_texture_swizzle/depth_texture_mode_and_swizzle.c b/tests/spec/ext_texture_swizzle/depth_texture_mode_and_swizzle.c
index d0d0270..1adede4 100644
--- a/tests/spec/ext_texture_swizzle/depth_texture_mode_and_swizzle.c
+++ b/tests/spec/ext_texture_swizzle/depth_texture_mode_and_swizzle.c
@@ -45,7 +45,7 @@ PIGLIT_GL_TEST_CONFIG_BEGIN
 
     config.window_width = 170;
     config.window_height= 30;
-    config.window_visual = PIGLIT_GL_VISUAL_RGBA | PIGLIT_GL_VISUAL_DOUBLE;
+    config.window_visual = PIGLIT_GL_VISUAL_RGB | PIGLIT_GL_VISUAL_ALPHA | PIGLIT_GL_VISUAL_DOUBLE;
 
 PIGLIT_GL_TEST_CONFIG_END
 
-- 
1.7.3.4



More information about the Piglit mailing list