From: Brian Paul Date: Sat, 24 Oct 2009 00:38:43 +0000 (-0600) Subject: Merge branch 'mesa_7_6_branch' X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=46a784b7fd2dcab97c26d5ca02fb8f74945ba157;p=mesa.git Merge branch 'mesa_7_6_branch' --- 46a784b7fd2dcab97c26d5ca02fb8f74945ba157 diff --cc src/mesa/main/fbobject.c index 85d3d3db997,ed1db0feca6..0040099a69f --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@@ -1501,19 -1511,12 +1501,7 @@@ framebuffer_texture(GLcontext *ctx, con 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: - */ - if (ctx->Driver.Flush) - ctx->Driver.Flush(ctx); _glthread_LOCK_MUTEX(fb->Mutex); if (texObj) {