summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-10-23 18:21:59 -0600
committerBrian Paul <[email protected]>2009-10-23 18:22:41 -0600
commitdc8b139aa23899b00baa919fd7f46c74bf4ef205 (patch)
tree27fd1ed32c261e1f2e038630007420f252fdc4d9 /src/mesa
parent0acb057ad16264b976b00aa7c6ecf285ca8c19e7 (diff)
mesa: remove FBO texture depth/stencil test
The texture format should not be checked until validation time since the format might be changed by a subsequent glTexImage() call.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/fbobject.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
index 825a23090b5..ed1db0feca6 100644
--- a/src/mesa/main/fbobject.c
+++ b/src/mesa/main/fbobject.c
@@ -1511,18 +1511,6 @@ framebuffer_texture(GLcontext *ctx, const char *caller, GLenum target,
return;
}
- if (texObj && attachment == GL_DEPTH_STENCIL_ATTACHMENT) {
- /* the texture format must be depth+stencil */
- const struct gl_texture_image *texImg;
- texImg = texObj->Image[0][texObj->BaseLevel];
- if (!texImg || texImg->_BaseFormat != GL_DEPTH_STENCIL) {
- _mesa_error(ctx, GL_INVALID_OPERATION,
- "glFramebufferTexture%sEXT(texture is not"
- " DEPTH_STENCIL format)", caller);
- return;
- }
- }
-
FLUSH_CURRENT(ctx, _NEW_BUFFERS);
/* The above doesn't fully flush the drivers in the way that a
* glFlush does, but that is required here: