query/print max convolution filter size
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 10 Aug 2004 15:32:25 +0000 (15:32 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 10 Aug 2004 15:32:25 +0000 (15:32 +0000)
progs/xdemos/glxinfo.c

index 0e9a731dc861388f4f8518c8e1b1727eb091e5a4..46311bd645f9227b1e8b33e4e834391f6642efa4 100644 (file)
@@ -204,6 +204,13 @@ print_limits(void)
             printf("    %s = %d, %d\n", limits[i].name, max[0], max[1]);
       }
    }
+   /* these don't fit into the above mechanism, unfortunately */
+   glGetConvolutionParameteriv(GL_CONVOLUTION_2D, GL_MAX_CONVOLUTION_WIDTH, max);
+   glGetConvolutionParameteriv(GL_CONVOLUTION_2D, GL_MAX_CONVOLUTION_HEIGHT, max+1);
+   if (glGetError() == GL_NONE) {
+      printf("    GL_MAX_CONVOLUTION_WIDTH/HEIGHT = %d, %d\n", max[0], max[1]);
+   }
+
 }