aboutsummaryrefslogtreecommitdiff
path: root/tests/cubegeom.c
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-02-20 13:58:14 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-02-20 13:58:14 -0800
commit36c82414cb8149e4e0cb7c8bcedfe0204e8d6d90 (patch)
tree2f3a6f0c0d2d13f618f002d7f7054b93dd34cbf3 /tests/cubegeom.c
parent68410ca5b8674f02d0da783bbfc78e2839d6b2c6 (diff)
glGetPointerv
Diffstat (limited to 'tests/cubegeom.c')
-rw-r--r--tests/cubegeom.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/cubegeom.c b/tests/cubegeom.c
index c137ad80..1e5de47c 100644
--- a/tests/cubegeom.c
+++ b/tests/cubegeom.c
@@ -207,6 +207,11 @@ int main(int argc, char *argv[])
glNormalPointer(GL_BYTE, 32, (void*)12);
glColorPointer(4, GL_UNSIGNED_BYTE, 32, (void*)28);
+ int temp; // test glGetPointerv
+ glGetPointerv(GL_VERTEX_ARRAY_POINTER, &temp); assert(temp == 0);
+ glGetPointerv(GL_COLOR_ARRAY_POINTER, &temp); assert(temp == 28);
+ glGetPointerv(GL_TEXTURE_COORD_ARRAY_POINTER, &temp); assert(temp == 16);
+
glBindTexture(GL_TEXTURE_2D, texture); // diffuse?
glActiveTexture(GL_TEXTURE0);
glActiveTexture(GL_TEXTURE1);