[Impeller] Guard calls to extension proc DebugMessageControlKHR. (flutter/engine#46747)

Quick fix to unblock the `impeller-cmake-example` build. Calls to ES3 and extension procs need to be guarded.
This commit is contained in:
Brandon DeRosier
2023-10-10 17:53:33 -07:00
committed by GitHub
parent e76a91f169
commit e8e13de094

View File

@@ -257,12 +257,14 @@ bool ReactorGLES::FlushOps() {
void ReactorGLES::SetupDebugGroups() {
// Setup of a default active debug group: Filter everything in.
proc_table_->DebugMessageControlKHR(GL_DONT_CARE, // source
GL_DONT_CARE, // type
GL_DONT_CARE, // severity
0, // count
nullptr, // ids
GL_TRUE); // enabled
if (proc_table_->DebugMessageControlKHR.IsAvailable()) {
proc_table_->DebugMessageControlKHR(GL_DONT_CARE, // source
GL_DONT_CARE, // type
GL_DONT_CARE, // severity
0, // count
nullptr, // ids
GL_TRUE); // enabled
}
}
void ReactorGLES::SetDebugLabel(const HandleGLES& handle, std::string label) {