summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/osmesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2001-08-28 23:12:37 +0000
committerBrian Paul <[email protected]>2001-08-28 23:12:37 +0000
commita0037ad8b38e25bdb16e64e4da6e5c75cc66a9cd (patch)
treea12a44bb73ac7bf8a35dfe9920cb227fa60b18b6 /src/mesa/drivers/osmesa
parenta07e02fd0162d4b951dee7b0182510224b2e5cab (diff)
added OSMESA_MAX_WIDTH/HEIGHT queries
Diffstat (limited to 'src/mesa/drivers/osmesa')
-rw-r--r--src/mesa/drivers/osmesa/osmesa.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c
index 42de21641ac..1ca21486be6 100644
--- a/src/mesa/drivers/osmesa/osmesa.c
+++ b/src/mesa/drivers/osmesa/osmesa.c
@@ -1,4 +1,4 @@
-/* $Id: osmesa.c,v 1.64 2001/08/28 22:46:22 brianp Exp $ */
+/* $Id: osmesa.c,v 1.65 2001/08/28 23:12:37 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -553,6 +553,12 @@ void GLAPIENTRY OSMesaGetIntegerv( GLint pname, GLint *value )
case OSMESA_Y_UP:
*value = ctx->yup;
return;
+ case OSMESA_MAX_WIDTH:
+ *value = MAX_WIDTH;
+ return;
+ case OSMESA_MAX_HEIGHT:
+ *value = MAX_HEIGHT;
+ return;
default:
_mesa_error(&ctx->gl_ctx, GL_INVALID_ENUM, "OSMesaGetIntergerv(pname)");
return;