Commit 5cfdc9d1 authored by Neil Roberts's avatar Neil Roberts
Browse files

texsubimage: Fix updating a sub-region of a 3D texture

When the texture target is GL_TEXTURE_3D the test wasn't updating a
sub-region of the texture due to what looks like a typo. The test was
passing anyway because the data it uploads is the same as the original
data so doing nothing is valid behaviour according to the test.
Reviewed-by: Brian Paul's avatarBrian Paul <>
parent 34f0d85e
......@@ -298,7 +298,7 @@ test_format(GLenum target, GLenum intFormat)
glTexSubImage2D(target, 0, tx, ty, tw, th,
srcFormat, GL_UNSIGNED_BYTE, img);
else if (target == GL_TEXTURE_2D) {
else if (target == GL_TEXTURE_3D) {
glTexSubImage3D(target, 0, tx, ty, tz, tw, th, td,
srcFormat, GL_UNSIGNED_BYTE, img);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment