aboutsummaryrefslogtreecommitdiff
path: root/tests/cube_explosion.c
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-02-05 18:26:02 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-02-05 18:26:02 -0800
commit5a99d2567e76f257309cfd225876f3a5402e5f46 (patch)
tree4017c62d53033d3cdfb1cdeb26529190d58784b2 /tests/cube_explosion.c
parentac0972ebf6cb8ff17f1bbbf01526d29fd2d2f420 (diff)
parent9aa7bbf6987cad3cff53906c5d6a6e77b6bd5b9c (diff)
Merge branch 'incoming'
Diffstat (limited to 'tests/cube_explosion.c')
-rw-r--r--tests/cube_explosion.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/cube_explosion.c b/tests/cube_explosion.c
index ee990a57..3f55b3c6 100644
--- a/tests/cube_explosion.c
+++ b/tests/cube_explosion.c
@@ -64,8 +64,11 @@ int main(int argc, char *argv[])
// Create a texture
GLuint texture;
+ assert(!glIsTexture(1)); // not a texture
glGenTextures( 1, &texture );
+ assert(!glIsTexture(texture)); // not a texture until glBindTexture
glBindTexture( GL_TEXTURE_2D, texture );
+ assert(glIsTexture(texture)); // NOW it is a texture
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR );
GLubyte textureData[16*16*4];
@@ -223,6 +226,10 @@ int main(int argc, char *argv[])
SDL_GL_SwapBuffers();
+ assert(glIsTexture(texture)); // still a texture
+ glDeleteTextures(1, &texture);
+ assert(!glIsTexture(texture)); // but not anymore
+
verify();
#if !EMSCRIPTEN