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

[Impeller] Guard calls to extension proc DebugMessageControlKHR. #46747

Merged
merged 1 commit into from
Oct 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions impeller/renderer/backend/gles/reactor_gles.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down