[gtk/wip/matthiasc/gdk-egl-x11: 1/2] glarea: Don't use GL_RGBA8 with OpengGL ES
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/gdk-egl-x11: 1/2] glarea: Don't use GL_RGBA8 with OpengGL ES
- Date: Sat, 8 May 2021 15:22:17 +0000 (UTC)
commit 2bca76ee13823b2afa93753627737dfc3048cb7a
Author: Emmanuele Bassi <ebassi gnome org>
Date: Fri Dec 16 15:11:20 2016 +0000
glarea: Don't use GL_RGBA8 with OpengGL ES
The GL_RGBA8 internal format is available only on desktop GL.
gtk/gtkglarea.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkglarea.c b/gtk/gtkglarea.c
index 93c8a7a52b..ecb0c1bb08 100644
--- a/gtk/gtkglarea.c
+++ b/gtk/gtkglarea.c
@@ -501,7 +501,7 @@ gtk_gl_area_allocate_texture (GtkGLArea *area)
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
if (gdk_gl_context_get_use_es (priv->context))
- glTexImage2D (GL_TEXTURE_2D, 0, GL_RGBA8, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL);
+ glTexImage2D (GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL);
else
glTexImage2D (GL_TEXTURE_2D, 0, GL_RGBA8, width, height, 0, GL_BGRA, GL_UNSIGNED_BYTE, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]