diff options
author | Brian Paul <[email protected]> | 2011-10-13 07:37:43 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-10-13 07:38:03 -0600 |
commit | 63aa53bf3499672a14259af9ce964065776584fe (patch) | |
tree | 85e86ec09cdc7aeba202ada8fce3d5f4a52c71ca /src/mesa/main/teximage.c | |
parent | 504d0add1257f63d72d320f99f182412358dc40f (diff) |
mesa: remove redundant buffer checks in copytexture_error_check()
There was already a call to _mesa_source_buffer_exists() earlier in
the function.
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/main/teximage.c')
-rw-r--r-- | src/mesa/main/teximage.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 8efe715fe97..28c970588d2 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -1975,22 +1975,6 @@ copytexture_error_check( struct gl_context *ctx, GLuint dimensions, return GL_TRUE; } } - else if (_mesa_is_depth_format(internalFormat)) { - /* make sure we have depth/stencil buffers */ - if (!ctx->ReadBuffer->_DepthBuffer) { - _mesa_error(ctx, GL_INVALID_OPERATION, - "glCopyTexImage%dD(no depth)", dimensions); - return GL_TRUE; - } - } - else if (_mesa_is_depthstencil_format(internalFormat)) { - /* make sure we have depth/stencil buffers */ - if (!ctx->ReadBuffer->_DepthBuffer || !ctx->ReadBuffer->_StencilBuffer) { - _mesa_error(ctx, GL_INVALID_OPERATION, - "glCopyTexImage%dD(no depth/stencil buffer)", dimensions); - return GL_TRUE; - } - } /* if we get here, the parameters are OK */ return GL_FALSE; |