mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
Fix detection of OpenGL 3.3 core GL_ARB_timer_query.
Some systems (notably macOS) will not allow enumeration of an extension that has been promoted to core OpenGL for context in use. This change assumes that GL_ARB_timer_query is available on OpenGL 3.3+. I could not find definitive information on whether GL_ARB_debug_output or GL_KHR_debug have been added to core. Other extensions in use were addressed by https://gitlab.gnome.org/GNOME/gtk/merge_requests/1422 .
This commit is contained in:
parent
c4111dad31
commit
0969d06925
@ -109,7 +109,7 @@ gsk_gl_profiler_init (GskGLProfiler *self)
|
||||
glGenQueries (N_QUERIES, self->gl_queries);
|
||||
|
||||
self->first_frame = TRUE;
|
||||
self->has_timer = epoxy_has_gl_extension ("GL_ARB_timer_query");
|
||||
self->has_timer = epoxy_gl_version () >= 33 || epoxy_has_gl_extension ("GL_ARB_timer_query");
|
||||
}
|
||||
|
||||
GskGLProfiler *
|
||||
|
Loading…
Reference in New Issue
Block a user