openbsd-ports/graphics/Mesa/patches/patch-ae

35 lines
1.1 KiB
Plaintext

--- src/get.c.orig Sun Mar 7 19:14:22 1999
+++ src/get.c Sun Mar 7 19:14:27 1999
@@ -588,6 +591,7 @@
*params = INT_TO_BOOL(MAX_PROJECTION_STACK_DEPTH);
break;
case GL_MAX_TEXTURE_SIZE:
+ case GL_MAX_3D_TEXTURE_SIZE:
*params = INT_TO_BOOL(max_texture_size(ctx));
break;
case GL_MAX_TEXTURE_STACK_DEPTH:
@@ -1447,6 +1451,7 @@
*params = (GLdouble) MAX_PROJECTION_STACK_DEPTH;
break;
case GL_MAX_TEXTURE_SIZE:
+ case GL_MAX_3D_TEXTURE_SIZE:
*params = (GLdouble) max_texture_size(ctx);
break;
case GL_MAX_TEXTURE_STACK_DEPTH:
@@ -2303,6 +2308,7 @@
*params = (GLfloat) MAX_PROJECTION_STACK_DEPTH;
break;
case GL_MAX_TEXTURE_SIZE:
+ case GL_MAX_3D_TEXTURE_SIZE:
*params = (GLfloat) max_texture_size(ctx);
break;
case GL_MAX_TEXTURE_STACK_DEPTH:
@@ -3160,6 +3166,7 @@
*params = (GLint) MAX_PROJECTION_STACK_DEPTH;
break;
case GL_MAX_TEXTURE_SIZE:
+ case GL_MAX_3D_TEXTURE_SIZE:
*params = max_texture_size(ctx);
break;
case GL_MAX_TEXTURE_STACK_DEPTH: