Skip to content
Snippets Groups Projects
Commit 41126214 authored by Gerd Hoffmann's avatar Gerd Hoffmann
Browse files

egl-helpers: add alpha channel to texture format


Needed when rendering cursers which (unlike framebuffers)
actually are transparent.

Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Message-id: 20180220110433.20353-4-kraxel@redhat.com
parent b0916928
No related branches found
No related tags found
No related merge requests found
......@@ -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_RGBA, width, height,
0, GL_BGRA, GL_UNSIGNED_BYTE, 0);
egl_fb_setup_for_tex(fb, width, height, texture, true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment