OSDN Git Service

mesa: Fix GL error generation in glBlitFramebuffer()
authorAnuj Phogat <anuj.phogat@gmail.com>
Mon, 7 Jan 2013 23:55:31 +0000 (15:55 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 15 Jan 2013 23:08:12 +0000 (15:08 -0800)
commit252573ae0fe6c928885f005cf6e77200b45601fb
tree1910a5021dff5daed20fff232fe109a679c41b68
parentf727fc630462c91f19a59e8b48e3a4224dd0ec52
mesa: Fix GL error generation in glBlitFramebuffer()

V2:
If mask has GL_STENCIL_BUFFER_BIT set, the depth formats for
readRenderBuffer and drawRenderBuffer must match unless one of the two
buffers doesn't have depth, in which case it's not blitted, so the
format check should be ignored.  Same comment goes for stencil formats
in depth renderbuffers if mask has GL_DEPTH_BUFFER_BIT set.

v3 (Kayden): Refactor code to be a bit more readable.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/fbobject.c