← recipes

Commit 985cc16

0
plików
+0
dodanych
-0
usuniętych
@@ -8,20 +8,14 @@ buffer ends up with red and blue swapped.
8 8
9 9 On llvmpipe the implementation read format is GL_RGB, so
10 10 wlr_output_preferred_read_format() reports BGR888 and screencopy
11 -clients (e.g. our pg-shot) receive a buffer with inverted channels.
12 -
13 -Fix: after reading, swap R and B in place for BGR888 destinations.
11 +clients receive a buffer with inverted channels.
14 12
15 13 Origin: PaganDE fork of wlroots 0.20.2
16 14 ---
17 - render/gles2/texture.c | 16 ++++++++++++++++
18 - 1 file changed, 16 insertions(+)
15 + render/gles2/texture.c | 19 +++++++++++++++++++
16 + 1 file changed, 19 insertions(+)
19 17
20 -diff --git a/render/gles2/texture.c b/render/gles2/texture.c
21 -index 0000000..0000000 100644
22 -+++ b/render/gles2/texture.c
23 -@@ -216,6 +216,22 @@ static bool gles2_texture_read_pixels(struct wlr_texture *wlr_texture,
18 +@@ -225,6 +225,25 @@
24 19 }
25 20 }
26 21
@@ -47,4 +41,3 @@ index 0000000..0000000 100644
47 41 wlr_egl_restore_context(&prev_ctx);
48 42 pop_gles2_debug(texture->renderer);
49 43
50 - return glGetError() == GL_NO_ERROR;