diff options
author | Neil Roberts <neil@linux.intel.com> | 2014-12-17 13:46:22 +0000 |
---|---|---|
committer | Neil Roberts <neil@linux.intel.com> | 2014-12-18 11:55:06 +0000 |
commit | 5cfdc9d1d46fce9112845762a669dd308e21498c (patch) | |
tree | 63256e0134fe481180a29b36f45b555046cdc49a | |
parent | 34f0d85e76813f9280f174731481b6b09db522cc (diff) |
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 <brianp@vmware.com>
-rw-r--r-- | tests/texturing/texsubimage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/texturing/texsubimage.c b/tests/texturing/texsubimage.c index f5b9209bf..0388da615 100644 --- a/tests/texturing/texsubimage.c +++ b/tests/texturing/texsubimage.c @@ -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); } |