Skip to content

Commit

Permalink
[Impeller] Remove implicit calls to glGetError in opt modes. (flutter…
Browse files Browse the repository at this point in the history
…#54016)

This many explicit calls are all but useless unless you are doing bringup. And we do that in unopt modes anyway. Having this on in even the debug and profile opt modes was turning out to be pretty egregious.
  • Loading branch information
chinmaygarde authored Jul 22, 2024
1 parent e7b5998 commit 1aab6f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions impeller/renderer/backend/gles/proc_table_gles.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ struct GLProc {
///
template <class... Args>
auto operator()(Args&&... args) const {
#ifdef IMPELLER_DEBUG
#if defined(IMPELLER_DEBUG) && !defined(NDEBUG)
AutoErrorCheck error(error_fn, name);
// We check for the existence of extensions, and reset the function pointer
// but it's still called unconditionally below, and will segfault. This
// validation log will at least give us a hint as to what's going on.
FML_CHECK(IsAvailable()) << "GL function " << name << " is not available. "
<< "This is likely due to a missing extension.";
#endif // IMPELLER_DEBUG
#endif // defined(IMPELLER_DEBUG) && !defined(NDEBUG)
return function(std::forward<Args>(args)...);
}

Expand Down

0 comments on commit 1aab6f8

Please sign in to comment.