summaryrefslogtreecommitdiff
path: root/progs/xdemos
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-08-10 15:32:25 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-08-10 15:32:25 +0000
commitf2afdcae9a706c1a3b426da47935f0c4f2128a54 (patch)
treedef9c467117f6278cfc9eab77b4b2c6c945fe87c /progs/xdemos
parentdfbb84ea2c0d1ddcc563ca3ec61b6a50ec68479a (diff)
query/print max convolution filter size
Diffstat (limited to 'progs/xdemos')
-rw-r--r--progs/xdemos/glxinfo.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/progs/xdemos/glxinfo.c b/progs/xdemos/glxinfo.c
index 0e9a731dc8..46311bd645 100644
--- a/progs/xdemos/glxinfo.c
+++ b/progs/xdemos/glxinfo.c
@@ -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]);
+ }
+
}