Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit ddab3c2

Browse files
authored
[Impeller] Guard calls to extension proc DebugMessageControlKHR. (#46747)
Quick fix to unblock the `impeller-cmake-example` build. Calls to ES3 and extension procs need to be guarded.
1 parent ea275c3 commit ddab3c2

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

impeller/renderer/backend/gles/reactor_gles.cc

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,14 @@ bool ReactorGLES::FlushOps() {
257257

258258
void ReactorGLES::SetupDebugGroups() {
259259
// Setup of a default active debug group: Filter everything in.
260-
proc_table_->DebugMessageControlKHR(GL_DONT_CARE, // source
261-
GL_DONT_CARE, // type
262-
GL_DONT_CARE, // severity
263-
0, // count
264-
nullptr, // ids
265-
GL_TRUE); // enabled
260+
if (proc_table_->DebugMessageControlKHR.IsAvailable()) {
261+
proc_table_->DebugMessageControlKHR(GL_DONT_CARE, // source
262+
GL_DONT_CARE, // type
263+
GL_DONT_CARE, // severity
264+
0, // count
265+
nullptr, // ids
266+
GL_TRUE); // enabled
267+
}
266268
}
267269

268270
void ReactorGLES::SetDebugLabel(const HandleGLES& handle, std::string label) {

0 commit comments

Comments
 (0)