diff options
author | Matt Turner <[email protected]> | 2013-07-26 16:36:19 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2013-07-29 10:35:01 -0700 |
commit | 8dd15e602113700c7ec25649ecce3f22aa687ea3 (patch) | |
tree | 5cdf0365d59c91b3d4511a113f2e0c9eba0047a6 /src | |
parent | b2d3f25aa2cb9fe83c7b1cbdf1b014012606dd3b (diff) |
mesa: Return GL_FRAMEBUFFER_UNDEFINED if the winsys fbo is incomplete.
Specified by ARB_framebuffer_object, GL 3.0, and ES 3.0.
Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/fbobject.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index a29f1ab13c0..bf7e85c8826 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 */ |