[Piglit] [PATCH 1/2] max-texture-size: test glTexSubImage2D() for GL_TEXTURE_RECTANGLE too
Brian Paul
brianp at vmware.com
Sat Feb 8 00:07:17 CET 2014
All the other texture targets test glTexSubImage(), so do it for
this target too.
---
tests/texturing/max-texture-size.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/texturing/max-texture-size.c b/tests/texturing/max-texture-size.c
index 60ebc15..49bf766 100644
--- a/tests/texturing/max-texture-size.c
+++ b/tests/texturing/max-texture-size.c
@@ -297,6 +297,9 @@ test_non_proxy_texture_size(GLenum target, GLenum internalformat)
glTexImage2D(target, 0, internalformat, maxSide,
maxSide, 0, GL_RGBA, GL_FLOAT, NULL);
STOP_ON_ERRORS;
+
+ glTexSubImage2D(target, 0, 0, 0, maxSide/2, maxSide/2,
+ GL_RGBA, GL_FLOAT, pixels);
break;
case GL_TEXTURE_3D:
--
1.7.10.4
More information about the Piglit
mailing list