summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2019-05-27 09:36:28 +1000
committerJuan A. Suarez Romero <jasuarez@igalia.com>2019-05-27 08:31:05 +0000
commit74c53676125395e82c3c3959f2f52c6afc659e0d (patch)
treea8931654869e15ca218e2e440f7bb44372a72bfa
parent95ffe6323e5323e0dbbabe74a8fb9068844a21da (diff)
Revert "mesa: unreference current winsys buffers when unbinding winsys buffers"
This reverts commit 12bf7cfecf52083c484602f971738475edfe497e. This commits caused lots of problems: https://bugs.freedesktop.org/show_bug.cgi?id=110721 https://bugs.freedesktop.org/show_bug.cgi?id=110761 Fixes: 12bf7cfecf52 ("mesa: unreference current winsys buffers when unbinding winsys buffers") Pushing without review as we need to get it into next stable. (cherry picked from commit 7fe5a8e874b2cae2b1ada3f6aab8ca6766753b1e)
-rw-r--r--src/mesa/main/context.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index dfd1c77d88a..2c3d9a11ce3 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1767,10 +1767,6 @@ _mesa_make_current( struct gl_context *newCtx,
check_init_viewport(newCtx, drawBuffer->Width, drawBuffer->Height);
}
- else {
- _mesa_reference_framebuffer(&newCtx->WinSysDrawBuffer, NULL);
- _mesa_reference_framebuffer(&newCtx->WinSysReadBuffer, NULL);
- }
if (newCtx->FirstTimeCurrent) {
handle_first_current(newCtx);