[Mesa-dev] [PATCH 01/10] mesa: Considers GL_DEPTH_STENCIL_ATTACHMENT a valid argument for FBO invalidation under GLES3

Matt Turner mattst88 at gmail.com
Mon Dec 1 10:53:20 PST 2014


On Mon, Dec 1, 2014 at 5:04 AM, Eduardo Lima Mitev <elima at igalia.com> wrote:
> In OpenGL and OpenGL-Es 3+, GL_DEPTH_STENCIL_ATTACHMENT is a valid attachment point for the family of functions
> that invalidate a framebuffer object (e.g, glInvalidateFramebuffer, glInvalidateSubFramebuffer, etc).
> Currently, a GL_INVALID_ENUM error is emitted for this attachment point.
>
> Fixes 21 dEQP test failures under 'dEQP-GLES3.functional.fbo.invalidate.*'.
> ---
>  src/mesa/main/fbobject.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
> index 8283373..19c4020 100644
> --- a/src/mesa/main/fbobject.c
> +++ b/src/mesa/main/fbobject.c
> @@ -3073,6 +3073,10 @@ invalidate_framebuffer_storage(GLenum target, GLsizei numAttachments,
>           case GL_DEPTH_ATTACHMENT:
>           case GL_STENCIL_ATTACHMENT:
>              break;
> +         case GL_DEPTH_STENCIL_ATTACHMENT:
> +            if (_mesa_is_desktop_gl(ctx) || _mesa_is_gles3(ctx))
> +               break;
> +            /* otherwise fall through */

I'd change the comment to just '/* fallthrough */' to match other occurrences.


More information about the mesa-dev mailing list