mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-10 13:29:44 -05:00
gles2: Avoid crash when glGetInteger64vEXT is missing
The spec for GL_EXT_disjoint_timer_query says
> The GetInteger64vEXT command is required only if OpenGL ES 3.0 or later
> is not supported.
Some GLES 3.2 implementations like the proprietary mali driver on the
rk3566 based OrangePi advertise GL_EXT_disjoint_timer_query but lack
glGetInteger64vEXT. Use glGetInteger64v instead.
(cherry picked from commit 341b3c8bd2)
This commit is contained in:
parent
d98a3eb492
commit
d334507dc2
1 changed files with 5 additions and 1 deletions
|
|
@ -915,7 +915,11 @@ struct wlr_renderer *wlr_gles2_renderer_create(struct wlr_egl *egl) {
|
|||
load_gl_proc(&renderer->procs.glQueryCounterEXT, "glQueryCounterEXT");
|
||||
load_gl_proc(&renderer->procs.glGetQueryObjectivEXT, "glGetQueryObjectivEXT");
|
||||
load_gl_proc(&renderer->procs.glGetQueryObjectui64vEXT, "glGetQueryObjectui64vEXT");
|
||||
load_gl_proc(&renderer->procs.glGetInteger64vEXT, "glGetInteger64vEXT");
|
||||
if (eglGetProcAddress("glGetInteger64vEXT")) {
|
||||
load_gl_proc(&renderer->procs.glGetInteger64vEXT, "glGetInteger64vEXT");
|
||||
} else {
|
||||
load_gl_proc(&renderer->procs.glGetInteger64vEXT, "glGetInteger64v");
|
||||
}
|
||||
}
|
||||
|
||||
if (renderer->exts.KHR_debug) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue