diff options
author | Brian Paul <[email protected]> | 2009-09-19 16:27:59 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-09-19 16:43:17 -0600 |
commit | dc3839ef3dc032627b7bb10b2c24786efc3ef5ec (patch) | |
tree | 96ec07a0e5135d5902b56a9ad4ca0b9c096caf23 /src/mesa/main/convolve.c | |
parent | 883dd9d770f0d25fb8474dc381faa99ee38de0e6 (diff) |
mesa: move readbuffer tests
Diffstat (limited to 'src/mesa/main/convolve.c')
-rw-r--r-- | src/mesa/main/convolve.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/main/convolve.c b/src/mesa/main/convolve.c index 70951112a18..bf6f6619d4f 100644 --- a/src/mesa/main/convolve.c +++ b/src/mesa/main/convolve.c @@ -482,6 +482,10 @@ _mesa_CopyConvolutionFilter1D(GLenum target, GLenum internalFormat, GLint x, GLi return; } + if (!ctx->ReadBuffer->_ColorReadBuffer) { + return; /* no readbuffer - OK */ + } + ctx->Driver.CopyConvolutionFilter1D( ctx, target, internalFormat, x, y, width); } @@ -514,6 +518,10 @@ _mesa_CopyConvolutionFilter2D(GLenum target, GLenum internalFormat, GLint x, GLi return; } + if (!ctx->ReadBuffer->_ColorReadBuffer) { + return; /* no readbuffer - OK */ + } + ctx->Driver.CopyConvolutionFilter2D( ctx, target, internalFormat, x, y, width, height ); } |