summaryrefslogtreecommitdiffstats
path: root/progs/tests/fbotest1.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-07-01 01:34:29 +0000
committerBrian Paul <[email protected]>2005-07-01 01:34:29 +0000
commit58a9573b08d6201c4dc75a7378471296ffb4700e (patch)
treed5cb5acdc7bac066bff6dd8c8a53fb58553537be /progs/tests/fbotest1.c
parent0d34c0158d341ab42a3710d2bb195a8d3f2ac115 (diff)
added some glGetRenderbufferParameterivEXT calls, printfs, and assertions
Diffstat (limited to 'progs/tests/fbotest1.c')
-rw-r--r--progs/tests/fbotest1.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/progs/tests/fbotest1.c b/progs/tests/fbotest1.c
index 1b710041786..6cacaeb4b9d 100644
--- a/progs/tests/fbotest1.c
+++ b/progs/tests/fbotest1.c
@@ -145,6 +145,19 @@ Init( void )
glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_RGB, Width, Height);
+ {
+ GLint r, g, b, a;
+ glGetRenderbufferParameterivEXT(GL_RENDERBUFFER_EXT,
+ GL_RENDERBUFFER_RED_SIZE_EXT, &r);
+ glGetRenderbufferParameterivEXT(GL_RENDERBUFFER_EXT,
+ GL_RENDERBUFFER_GREEN_SIZE_EXT, &g);
+ glGetRenderbufferParameterivEXT(GL_RENDERBUFFER_EXT,
+ GL_RENDERBUFFER_BLUE_SIZE_EXT, &b);
+ glGetRenderbufferParameterivEXT(GL_RENDERBUFFER_EXT,
+ GL_RENDERBUFFER_ALPHA_SIZE_EXT, &a);
+ printf("renderbuffer RGBA sizes = %d %d %d %d\n", r, g, b, a);
+ }
+
CheckError(__LINE__);
/* restore to default */