summaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2011-11-10 10:19:20 -0800
committerChad Versace <[email protected]>2011-11-11 12:28:22 -0800
commitbf8ad170c5af58fe9f49b3ce0f92c4eda9e5d845 (patch)
treefa302a4714b846fd817c3a2e8d35885b3cb3aa4d /src/glsl/glcpp
parent8727807f7e218bd161d92e34f6896f4451d14de0 (diff)
mesa: Fix glFramebufferTexture*() for depth and stencil attachments
This patch solves three bugs. 1. When a texture was attached to the GL_DEPTH_STENCIL_ATTACHMENT point, Mesa attached the texture only to the depth attachment point gl_framebuffer::Attachment[BUFFER_DEPTH] and failed to attach it to the stencil attachment point gl_framebuffer::Attachment[BUFFER_STENCIL] 2. When a texture was attached to the GL_DEPTH_ATTACHMENT point and then later attached to the GL_STENCIL_ATTACHMENT point, Mesa created two separate renderbuffer wrappers. This caused a GL error in glGetFramebufferAttachmentParameteriv(). 3. Same as 2, but with depth and stencil juxtaposed. Fixes Piglit test ARB_framebuffer_object/same-attachment-glFramebufferTexture2D-GL_DEPTH_STENCIL Note: This is a candidate for the stable branches. Reviewed-by: Eric Anholt <[email protected]> Signed-off-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/glsl/glcpp')
0 files changed, 0 insertions, 0 deletions