Mesa (master): glsl: Fix the prototype of textureProjGradOffset( sampler2DShadow)

Eric Anholt anholt at kemper.freedesktop.org
Mon Apr 16 20:34:13 UTC 2012


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

Author: Eric Anholt <eric at anholt.net>
Date:   Mon Apr 16 11:43:47 2012 -0700

glsl: Fix the prototype of textureProjGradOffset(sampler2DShadow)

Indirectly caught by Ken's review of my GLSL 1.40 changes where I
copy-and-pasted this line.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/glsl/builtins/profiles/140.frag |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/glsl/builtins/profiles/140.frag b/src/glsl/builtins/profiles/140.frag
index ba616a1..3eeecd1 100644
--- a/src/glsl/builtins/profiles/140.frag
+++ b/src/glsl/builtins/profiles/140.frag
@@ -958,7 +958,7 @@ ivec4 textureProjGradOffset(isampler3D s, vec4 P, vec3 dx, vec3 dy, ivec3 off);
 uvec4 textureProjGradOffset(usampler3D s, vec4 P, vec3 dx, vec3 dy, ivec3 off);
 
 float textureProjGradOffset(sampler1DShadow s, vec4 P, float dx, float dy, int o);
-float textureProjGradOffset(sampler2DShadow s, vec4 P, vec2 dx, vec2 dy, vec2 o);
+float textureProjGradOffset(sampler2DShadow s, vec4 P, vec2 dx, vec2 dy, ivec2 o);
 
 /*
  * The following texture functions are deprecated:




More information about the mesa-commit mailing list