Skip to content

Commit eba5fdc

Browse files
committed
Warn if timer query ext is not supported
1 parent c6b2cb1 commit eba5fdc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/backend/renderer/gles/profiler.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ mod imp {
191191
pub fn new(gl: &ffi::Gles2, extensions: &[String]) -> Self {
192192
let has_timer_query = extensions.iter().any(|ext| ext == "GL_EXT_disjoint_timer_query");
193193
if !has_timer_query {
194+
warn!("GPU profiling enabled but GL_EXT_disjoint_timer_query is not supported");
194195
return Self { pool: None };
195196
}
196197

0 commit comments

Comments
 (0)