[Mesa-dev] [PATCH 1/2] mesa: Return GL_FRAMEBUFFER_UNDEFINED if the winsys fbo is incomplete.

Jordan Justen jljusten at gmail.com
Sun Jul 28 13:03:51 PDT 2013


Series Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>

On Fri, Jul 26, 2013 at 4:36 PM, Matt Turner <mattst88 at gmail.com> wrote:
> Specified by ARB_framebuffer_object, GL 3.0, and ES 3.0.
> ---
>  src/mesa/main/fbobject.c | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
> index a29f1ab..bf7e85c 100644
> --- a/src/mesa/main/fbobject.c
> +++ b/src/mesa/main/fbobject.c
> @@ -2141,8 +2141,12 @@ _mesa_CheckFramebufferStatus(GLenum target)
>     }
>
>     if (_mesa_is_winsys_fbo(buffer)) {
> -      /* The window system / default framebuffer is always complete */
> -      return GL_FRAMEBUFFER_COMPLETE_EXT;
> +      /* EGL_KHR_surfaceless_context allows the winsys FBO to be incomplete. */
> +      if (buffer != &IncompleteFramebuffer) {
> +         return GL_FRAMEBUFFER_COMPLETE_EXT;
> +      } else {
> +         return GL_FRAMEBUFFER_UNDEFINED;
> +      }
>     }
>
>     /* No need to flush here */
> --
> 1.8.1.5
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list