diff options
author | Brian Paul <[email protected]> | 2005-07-01 01:34:29 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-07-01 01:34:29 +0000 |
commit | 58a9573b08d6201c4dc75a7378471296ffb4700e (patch) | |
tree | d5cb5acdc7bac066bff6dd8c8a53fb58553537be /progs/tests/fbotexture.c | |
parent | 0d34c0158d341ab42a3710d2bb195a8d3f2ac115 (diff) |
added some glGetRenderbufferParameterivEXT calls, printfs, and assertions
Diffstat (limited to 'progs/tests/fbotexture.c')
-rw-r--r-- | progs/tests/fbotexture.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/progs/tests/fbotexture.c b/progs/tests/fbotexture.c index dc347423aae..1da323c6858 100644 --- a/progs/tests/fbotexture.c +++ b/progs/tests/fbotexture.c @@ -223,6 +223,10 @@ Init(void) glBindRenderbufferEXT(GL_RENDERBUFFER_EXT, DepthRB); glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_DEPTH_COMPONENT, TexWidth, TexHeight); + glGetRenderbufferParameterivEXT(GL_RENDERBUFFER_EXT, + GL_RENDERBUFFER_DEPTH_SIZE_EXT, &i); + printf("Depth renderbuffer size = %d bits\n", i); + assert(i > 0); /* make stencil renderbuffer */ glGenRenderbuffersEXT(1, &StencilRB); @@ -231,6 +235,10 @@ Init(void) glBindRenderbufferEXT(GL_RENDERBUFFER_EXT, StencilRB); glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_STENCIL_INDEX, TexWidth, TexHeight); + glGetRenderbufferParameterivEXT(GL_RENDERBUFFER_EXT, + GL_RENDERBUFFER_STENCIL_SIZE_EXT, &i); + printf("Stencil renderbuffer size = %d bits\n", i); + assert(i > 0); /* attach DepthRB to MyFB */ glFramebufferRenderbufferEXT(GL_FRAMEBUFFER_EXT, GL_DEPTH_ATTACHMENT_EXT, |