From 0c000ec90c8ca38bfcb94394001665d0be3112dd Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 21 Nov 2000 23:26:13 +0000 Subject: call gl_update_state() if needed in glGetColorTable, glGetConvolutionFilter --- src/mesa/main/convolve.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/mesa/main/convolve.c') diff --git a/src/mesa/main/convolve.c b/src/mesa/main/convolve.c index 1641f497d8..172afd3dd2 100644 --- a/src/mesa/main/convolve.c +++ b/src/mesa/main/convolve.c @@ -1,4 +1,4 @@ -/* $Id: convolve.c,v 1.12 2000/11/21 23:01:22 brianp Exp $ */ +/* $Id: convolve.c,v 1.13 2000/11/21 23:26:13 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -564,6 +564,10 @@ _mesa_GetConvolutionFilter(GLenum target, GLenum format, GLenum type, GLvoid *im GET_CURRENT_CONTEXT(ctx); ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx, "glGetConvolutionFilter"); + if (ctx->NewState) { + gl_update_state(ctx); + } + if (!_mesa_is_legal_format_and_type(format, type) || format == GL_COLOR_INDEX || format == GL_STENCIL_INDEX || @@ -739,6 +743,10 @@ _mesa_GetSeparableFilter(GLenum target, GLenum format, GLenum type, GLvoid *row, GET_CURRENT_CONTEXT(ctx); ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx, "glGetSeparableFilter"); + if (ctx->NewState) { + gl_update_state(ctx); + } + if (target != GL_SEPARABLE_2D) { gl_error(ctx, GL_INVALID_ENUM, "glGetSeparableFilter(target)"); return; -- cgit v1.2.3