diff options
author | Brian Paul <[email protected]> | 2009-10-23 18:38:43 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-10-23 18:38:43 -0600 |
commit | 46a784b7fd2dcab97c26d5ca02fb8f74945ba157 (patch) | |
tree | 28196459475a6ba99ae64be0bce53d1b83ac52c9 /src/mesa/main/fbobject.c | |
parent | 26f1ad65b988fe55ae12a99994e4c63aaab899a0 (diff) | |
parent | dc8b139aa23899b00baa919fd7f46c74bf4ef205 (diff) |
Merge branch 'mesa_7_6_branch'
Diffstat (limited to 'src/mesa/main/fbobject.c')
-rw-r--r-- | src/mesa/main/fbobject.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index 85d3d3db997..0040099a69f 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -1501,18 +1501,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); _glthread_LOCK_MUTEX(fb->Mutex); |