Fix textureOffset overload
float textureOffset(sampler2DArrayShadow sampler, vec4 P, ivec2 offset) was incorrectly requiring the GL_EXT_texture_shadow_lod extension. NOTE: Prior to GLSL 440, this prototype was defined as float textureOffset(sampler2DArrayShadow sampler, vec4 P, vec2 offset) i.e., the type of 'offset' was specified as 'vec2' rather than 'ivec2'. This is believed to be a typo. Fixes #3325.
This commit is contained in:
committed by
arcady-lunarg
parent
fb2882a3c3
commit
e8d657bdbe
@@ -12,7 +12,6 @@ layout(location = 0) in vec4 tc;
|
||||
void main() {
|
||||
c = texture(s2da, tc, 0.0);
|
||||
c = texture(sca, tc, 0.0, 0.0);
|
||||
c = textureOffset(s2da, tc, ivec2(0.0));
|
||||
c = textureOffset(s2da, tc, ivec2(0.0), 0.0);
|
||||
c = textureLod(s2da, tc, 0.0);
|
||||
c = textureLod(sc, tc, 0.0);
|
||||
|
||||
Reference in New Issue
Block a user