mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-20 17:30:24 +01:00
Query/print GL_RED/GREEN/BLUE/ALPHA_BITS
This commit is contained in:
parent
474f28e57c
commit
cf085db28a
1 changed files with 8 additions and 0 deletions
|
|
@ -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__);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue