[Impeller] Call glDebugMessageControlKHR only if the KHR_debug extension is available (#163273)

Fixes https://github.com/flutter/flutter/issues/163269
This commit is contained in:
Jason Simmons 2025-02-14 01:58:51 +00:00 committed by GitHub
parent 5e5f6080a1
commit 0fc52bc91f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -374,7 +374,7 @@ bool ReactorGLES::FlushOps() {
void ReactorGLES::SetupDebugGroups() {
// Setup of a default active debug group: Filter everything in.
if (proc_table_->DebugMessageControlKHR.IsAvailable()) {
if (can_set_debug_labels_) {
proc_table_->DebugMessageControlKHR(GL_DONT_CARE, // source
GL_DONT_CARE, // type
GL_DONT_CARE, // severity