summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>2021-01-07 15:50:46 +0100
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>2021-01-13 09:33:49 +0100
commita6fe1eeb058c746da96cb9afae59f4bad7f1fb0c (patch)
tree60a1aa30e89cb5e21fc5b63c0cb4eae2d9d5218c /src
parent5d9bfcac0663e1dfc935f1d3b09e176c2d544532 (diff)
mesa/fbo: don't check_end_texture_render on fb read change
Otherwise this resets is_rtt to false in st/mesa, and then breaks fbo + texture view. This change also aligns the code with the comment above: * Note that if the ReadBuffer has texture attachments we don't consider * that a render-to-texture case. Acked-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8387>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/fbobject.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
index fb3ecace034..798f59d2499 100644
--- a/src/mesa/main/fbobject.c
+++ b/src/mesa/main/fbobject.c
@@ -3121,9 +3121,6 @@ _mesa_bind_framebuffers(struct gl_context *ctx,
if (bindReadBuf) {
FLUSH_VERTICES(ctx, _NEW_BUFFERS);
- /* check if old readbuffer was render-to-texture */
- check_end_texture_render(ctx, oldReadFb);
-
_mesa_reference_framebuffer(&ctx->ReadBuffer, newReadFb);
}