projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b091692
)
egl-helpers: add alpha channel to texture format
author
Gerd Hoffmann
<kraxel@redhat.com>
Tue, 20 Feb 2018 11:04:33 +0000
(12:04 +0100)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Thu, 22 Feb 2018 09:35:09 +0000
(10:35 +0100)
Needed when rendering cursers which (unlike framebuffers)
actually are transparent.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id:
20180220110433
.20353-4-kraxel@redhat.com
ui/egl-helpers.c
patch
|
blob
|
history
diff --git
a/ui/egl-helpers.c
b/ui/egl-helpers.c
index 5fa60ef4e8a58f80ab239aade7a0beddffe3451a..16dc3ded3630a57a315a53bc3b03c6e8293d51de 100644
(file)
--- a/
ui/egl-helpers.c
+++ b/
ui/egl-helpers.c
@@
-83,7
+83,7
@@
void egl_fb_setup_new_tex(egl_fb *fb, int width, int height)
glGenTextures(1, &texture);
glBindTexture(GL_TEXTURE_2D, texture);
- glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, width, height,
+ glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB
A
, width, height,
0, GL_BGRA, GL_UNSIGNED_BYTE, 0);
egl_fb_setup_for_tex(fb, width, height, texture, true);