[gtk+/wip/ebassi/gdk-egl-x11: 54/58] glarea: Don't use GL_RGBA8 with OpengGL ES
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/ebassi/gdk-egl-x11: 54/58] glarea: Don't use GL_RGBA8 with OpengGL ES
- Date: Mon, 16 Jan 2017 14:03:48 +0000 (UTC)
commit bc9a86aeb08eb491af8816b902d586248ffa7d8d
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkglarea.c b/gtk/gtkglarea.c
index 8e98a3d..db5317b 100644
--- a/gtk/gtkglarea.c
+++ b/gtk/gtkglarea.c
@@ -460,7 +460,7 @@ gtk_gl_area_allocate_buffers (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]