[grits] Add depth buffer bits to info example



commit a7d850df34dc5d72fccd4f71e21b23159663a958
Author: Andy Spencer <andy753421 gmail com>
Date:   Fri Apr 13 23:46:56 2012 +0000

    Add depth buffer bits to info example

 examples/info/info.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/examples/info/info.c b/examples/info/info.c
index a00f217..5df20b4 100644
--- a/examples/info/info.c
+++ b/examples/info/info.c
@@ -33,9 +33,11 @@ int main(int argc, char **argv)
 
 
 	/* Query max size */
-	GLint size;
+	GLint size, bits;
 	glGetIntegerv(GL_MAX_TEXTURE_SIZE, &size);
+	glGetIntegerv(GL_DEPTH_BITS, &bits);
 	printf("\nGL_MAX_TEXTURE_SIZE = %d\n", size);
+	printf("\nGL_DEPTH_BITS = %d\n", bits);
 
 
 	/* Test extensions */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]