Started only loading gles3 functions if we have a gles3 context (flutter/engine#56636)

test: exists in https://github.com/flutter/engine/pull/56596
fixes: https://github.com/flutter/flutter/issues/158995

[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
This commit is contained in:
gaaclarke 2024-11-18 10:08:02 -08:00 committed by GitHub
parent 9f1adb8ff4
commit daa1bbbed7

View File

@ -121,7 +121,11 @@ ProcTableGLES::ProcTableGLES( // NOLINT(google-readability-function-size)
reinterpret_cast<decltype(proc_ivar.function)>(fn_ptr); \ reinterpret_cast<decltype(proc_ivar.function)>(fn_ptr); \
proc_ivar.error_fn = error_fn; \ proc_ivar.error_fn = error_fn; \
} }
FOR_EACH_IMPELLER_GLES3_PROC(IMPELLER_PROC);
if (description_->GetGlVersion().IsAtLeast(Version(3))) {
FOR_EACH_IMPELLER_GLES3_PROC(IMPELLER_PROC);
}
FOR_EACH_IMPELLER_EXT_PROC(IMPELLER_PROC); FOR_EACH_IMPELLER_EXT_PROC(IMPELLER_PROC);
#undef IMPELLER_PROC #undef IMPELLER_PROC