[Piglit] [PATCH 4/6] glsl-1.40/glsl-fs-shadow2DRect: make it independent of the default depth mode

Marek Olšák maraeo at gmail.com
Sat Jul 20 11:29:43 PDT 2013


The default depth texture mode is GL_LUMINANCE and GL_RED
in the compatibility and core profile, respectively.
---
 tests/spec/glsl-1.40/execution/glsl-fs-shadow2DRect.shader_test     | 2 +-
 tests/spec/glsl-1.40/execution/glsl-fs-shadow2DRectProj.shader_test | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/spec/glsl-1.40/execution/glsl-fs-shadow2DRect.shader_test b/tests/spec/glsl-1.40/execution/glsl-fs-shadow2DRect.shader_test
index cd8e5e1..8016824 100644
--- a/tests/spec/glsl-1.40/execution/glsl-fs-shadow2DRect.shader_test
+++ b/tests/spec/glsl-1.40/execution/glsl-fs-shadow2DRect.shader_test
@@ -19,7 +19,7 @@ uniform sampler2DRectShadow tex;
 
 void main()
 {
-	gl_FragColor = shadow2DRect(tex, texcoords.xyy * vec3(31.0, 31.0, 1.0));
+	gl_FragColor = vec4(shadow2DRect(tex, texcoords.xyy * vec3(31.0, 31.0, 1.0)).xxx, 1.0);
 }
 
 [vertex data]
diff --git a/tests/spec/glsl-1.40/execution/glsl-fs-shadow2DRectProj.shader_test b/tests/spec/glsl-1.40/execution/glsl-fs-shadow2DRectProj.shader_test
index c961cb9..db0e5f1 100644
--- a/tests/spec/glsl-1.40/execution/glsl-fs-shadow2DRectProj.shader_test
+++ b/tests/spec/glsl-1.40/execution/glsl-fs-shadow2DRectProj.shader_test
@@ -20,7 +20,7 @@ uniform sampler2DRectShadow tex;
 
 void main()
 {
-	gl_FragColor = shadow2DRectProj(tex, vec4(texcoords.xyy * vec3(31.0, 31.0, 1.0), 2.0));
+	gl_FragColor = vec4(shadow2DRectProj(tex, vec4(texcoords.xyy * vec3(31.0, 31.0, 1.0), 2.0)).xxx, 1.0);
 }
 
 [vertex data]
-- 
1.8.1.2



More information about the Piglit mailing list