[mutter] cogl: GLES3 has glGetStringi
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] cogl: GLES3 has glGetStringi
- Date: Wed, 19 Feb 2020 18:02:41 +0000 (UTC)
commit b4226daadb777aa584729110fd1f5e49a5844e91
Author: Adam Jackson <ajax redhat com>
Date: Tue Oct 22 18:50:47 2019 -0400
cogl: GLES3 has glGetStringi
https://gitlab.gnome.org/GNOME/mutter/merge_requests/882
cogl/cogl/driver/gl/gles/cogl-driver-gles.c | 4 ++++
cogl/cogl/gl-prototypes/cogl-all-functions.h | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/cogl/cogl/driver/gl/gles/cogl-driver-gles.c b/cogl/cogl/driver/gl/gles/cogl-driver-gles.c
index fc04c8c91..09c9dd788 100644
--- a/cogl/cogl/driver/gl/gles/cogl-driver-gles.c
+++ b/cogl/cogl/driver/gl/gles/cogl-driver-gles.c
@@ -253,6 +253,10 @@ _cogl_driver_update_features (CoglContext *context,
(void *) _cogl_renderer_get_proc_address (context->display->renderer,
"glGetString",
TRUE);
+ context->glGetStringi =
+ (void *) _cogl_renderer_get_proc_address (context->display->renderer,
+ "glGetStringi",
+ TRUE);
gl_extensions = _cogl_context_get_gl_extensions (context);
diff --git a/cogl/cogl/gl-prototypes/cogl-all-functions.h b/cogl/cogl/gl-prototypes/cogl-all-functions.h
index 512b6d4ce..80d60702d 100644
--- a/cogl/cogl/gl-prototypes/cogl-all-functions.h
+++ b/cogl/cogl/gl-prototypes/cogl-all-functions.h
@@ -181,7 +181,7 @@ COGL_EXT_FUNCTION (void, glSamplerParameteri,
COGL_EXT_END ()
COGL_EXT_BEGIN (only_gl3, 3, 0,
- 0, /* not in either GLES */
+ COGL_EXT_IN_GLES3,
"\0",
"\0")
COGL_EXT_FUNCTION (const GLubyte *, glGetStringi,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]