From 9e920fb93cc0c388a9fc727b515dedcf1d2f5d9b Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 4 Oct 2005 15:01:51 +0000 Subject: [PATCH] fix glIsRender/FramebufferEXT() assertions --- progs/tests/fbotest1.c | 4 ++-- progs/tests/fbotexture.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/progs/tests/fbotest1.c b/progs/tests/fbotest1.c index 6cacaeb4b9d..364bd230c1e 100644 --- a/progs/tests/fbotest1.c +++ b/progs/tests/fbotest1.c @@ -117,14 +117,14 @@ Init( void ) glGenFramebuffersEXT(1, &MyFB); assert(MyFB); - assert(glIsFramebufferEXT(MyFB)); + assert(!glIsFramebufferEXT(MyFB)); glDeleteFramebuffersEXT(1, &MyFB); assert(!glIsFramebufferEXT(MyFB)); /* Note, continue to use MyFB below */ glGenRenderbuffersEXT(1, &rb); assert(rb); - assert(glIsRenderbufferEXT(rb)); + assert(!glIsRenderbufferEXT(rb)); glDeleteRenderbuffersEXT(1, &rb); assert(!glIsRenderbufferEXT(rb)); rb = 42; /* an arbitrary ID */ diff --git a/progs/tests/fbotexture.c b/progs/tests/fbotexture.c index 1da323c6858..e1f10c94185 100644 --- a/progs/tests/fbotexture.c +++ b/progs/tests/fbotexture.c @@ -206,7 +206,7 @@ Init(void) /* make framebuffer */ glGenFramebuffersEXT(1, &MyFB); assert(MyFB); - assert(glIsFramebufferEXT(MyFB)); + assert(!glIsFramebufferEXT(MyFB)); glDeleteFramebuffersEXT(1, &MyFB); assert(!glIsFramebufferEXT(MyFB)); /* Note, continue to use MyFB below */ @@ -219,7 +219,7 @@ Init(void) /* make depth renderbuffer */ glGenRenderbuffersEXT(1, &DepthRB); assert(DepthRB); - assert(glIsRenderbufferEXT(DepthRB)); + assert(!glIsRenderbufferEXT(DepthRB)); glBindRenderbufferEXT(GL_RENDERBUFFER_EXT, DepthRB); glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_DEPTH_COMPONENT, TexWidth, TexHeight); @@ -231,7 +231,7 @@ Init(void) /* make stencil renderbuffer */ glGenRenderbuffersEXT(1, &StencilRB); assert(StencilRB); - assert(glIsRenderbufferEXT(StencilRB)); + assert(!glIsRenderbufferEXT(StencilRB)); glBindRenderbufferEXT(GL_RENDERBUFFER_EXT, StencilRB); glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_STENCIL_INDEX, TexWidth, TexHeight); -- 2.30.2