aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-05-17 15:14:35 +0200
committerNicolai Hähnle <[email protected]>2017-05-18 11:47:27 +0200
commit377877ff5f5d08a1a417e8baf923b44c74f0d7e7 (patch)
tree2c389b8b1b1cc1d98ae63c59b932d2c7dc9f012f /src/mesa/state_tracker
parente69e5c7006da80af62c9ef08dec215b3b4b30946 (diff)
st/mesa: remove an incorrect assertion
There is really no reason why the current DrawBuffer needs to be complete at this point. In particular, the assertion gets hit on the X server side in libglx when running .../piglit/bin/glx-get-current-display-ext -auto (which uses indirect GLX rendering). Fixes: 19b61799e3d0 ("st/mesa: don't cast the incomplete framebufer to st_framebuffer") Reported-by: Michel Dänzer <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_manager.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c
index 3178e25a763..cc781f46209 100644
--- a/src/mesa/state_tracker/st_manager.c
+++ b/src/mesa/state_tracker/st_manager.c
@@ -837,8 +837,6 @@ st_manager_flush_frontbuffer(struct st_context *st)
struct st_framebuffer *stfb = st_ws_framebuffer(st->ctx->DrawBuffer);
struct st_renderbuffer *strb = NULL;
- assert(st->ctx->DrawBuffer != _mesa_get_incomplete_framebuffer());
-
if (stfb)
strb = st_renderbuffer(stfb->Base.Attachment[BUFFER_FRONT_LEFT].Renderbuffer);
if (!strb)