summaryrefslogtreecommitdiff
path: root/progs/tests/fbotest1.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-10-08 14:42:51 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-10-08 14:42:51 +0000
commitcf085db28a128ff25c3d9cdbc5277ca1fd2eff48 (patch)
treec26c48422b02a429fc9d8756fc14d7fe9ae09660 /progs/tests/fbotest1.c
parent474f28e57ca750ca39d7f684904a3c0e69a03f62 (diff)
Query/print GL_RED/GREEN/BLUE/ALPHA_BITS
Diffstat (limited to 'progs/tests/fbotest1.c')
-rw-r--r--progs/tests/fbotest1.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/progs/tests/fbotest1.c b/progs/tests/fbotest1.c
index 364bd230c1..3faa55eb90 100644
--- a/progs/tests/fbotest1.c
+++ b/progs/tests/fbotest1.c
@@ -71,7 +71,9 @@ Display( void )
static void
Reshape( int width, int height )
{
+#if 0
float ar = (float) width / (float) height;
+#endif
glViewport( 0, 0, width, height );
glMatrixMode( GL_PROJECTION );
glLoadIdentity();
@@ -156,6 +158,12 @@ Init( void )
glGetRenderbufferParameterivEXT(GL_RENDERBUFFER_EXT,
GL_RENDERBUFFER_ALPHA_SIZE_EXT, &a);
printf("renderbuffer RGBA sizes = %d %d %d %d\n", r, g, b, a);
+
+ glGetIntegerv(GL_RED_BITS, &r);
+ glGetIntegerv(GL_GREEN_BITS, &g);
+ glGetIntegerv(GL_BLUE_BITS, &b);
+ glGetIntegerv(GL_ALPHA_BITS, &a);
+ printf("Visual RGBA sizes = %d %d %d %d\n", r, g, b, a);
}
CheckError(__LINE__);