diff --git a/gl4/html/textureGatherOffsets.xhtml b/gl4/html/textureGatherOffsets.xhtml index 83a18fa9..aa37b5db 100644 --- a/gl4/html/textureGatherOffsets.xhtml +++ b/gl4/html/textureGatherOffsets.xhtml @@ -78,7 +78,7 @@   - vec3 P, + vec2 P,   @@ -227,9 +227,9 @@

textureGatherOffsets operates identically to textureGatherOffset, except that offsets is used to determine the location of the four texels to sample. Each of the four texels is obtained - by applying the offset in offsets as a (u, v) coordinate offset to P, identifying the four-texel + by applying the corresponding offset in offsets as a (u, v) coordinate offset to P, identifying the four-texel GL_LINEAR footprint, and then selecting the texel - i0i0 + i0j0 of that footprint. The specified values in offsets must be set with constant integral expressions.

diff --git a/gl4/textureGatherOffsets.xml b/gl4/textureGatherOffsets.xml index 352d826b..c9e591aa 100644 --- a/gl4/textureGatherOffsets.xml +++ b/gl4/textureGatherOffsets.xml @@ -36,7 +36,7 @@ gvec4 textureGatherOffsets gsampler2DRect sampler - vec3 P + vec2 P ivec2 offsets[4] [int comp] @@ -111,9 +111,9 @@ textureGatherOffsets operates identically to textureGatherOffset, except that offsets is used to determine the location of the four texels to sample. Each of the four texels is obtained - by applying the offset in offsets as a (u, v) coordinate offset to P, identifying the four-texel + by applying the corresponding offset in offsets as a (u, v) coordinate offset to P, identifying the four-texel GL_LINEAR footprint, and then selecting the texel - i0i0 + i0j0 of that footprint. The specified values in offsets must be set with constant integral expressions.