projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2caab68
)
gles: GLES 2 doesn't have glDrawBuffers()
author
Benjamin Otte
<otte@redhat.com>
Sat, 25 Dec 2021 13:43:33 +0000
(14:43 +0100)
committer
Benjamin Otte
<otte@redhat.com>
Sat, 25 Dec 2021 14:07:44 +0000
(15:07 +0100)
So don't call it.
gdk/gdkglcontext.c
patch
|
blob
|
history
diff --git
a/gdk/gdkglcontext.c
b/gdk/gdkglcontext.c
index 042c30a41ded3fc8ccae6e6d82acbdcbda58c624..62b60f5ebc0869fc1ae41742035b26810b70830e 100644
(file)
--- a/
gdk/gdkglcontext.c
+++ b/
gdk/gdkglcontext.c
@@
-580,8
+580,8
@@
gdk_gl_context_real_begin_frame (GdkDrawContext *draw_context,
glViewport (0, 0, ww, wh);
#ifdef HAVE_EGL
- if (priv->egl_context)
- glDrawBuffers (1, (GLenum[1]) { GL_BACK_LEFT });
+ if (priv->egl_context
&& gdk_gl_context_check_version (context, 0, 0, 3, 0)
)
+ glDrawBuffers (1, (GLenum[1]) {
gdk_gl_context_get_use_es (context) ? GL_BACK :
GL_BACK_LEFT });
#endif
}