mirror of
https://github.com/samsonjs/media.git
synced 2026-03-31 10:25:48 +00:00
Avoid duplicate logging of GL exceptions.
Only log GL exceptions in GlUtil if they aren't thrown. Otherwise, it's up to the caller whether or not to log them to avoid logging them twice. PiperOrigin-RevId: 431657397
This commit is contained in:
parent
1fe19195f9
commit
550299db9a
1 changed files with 2 additions and 1 deletions
|
|
@ -376,9 +376,10 @@ public final class GlUtil {
|
|||
}
|
||||
|
||||
/* package */ static void throwGlException(String errorMsg) {
|
||||
Log.e(TAG, errorMsg);
|
||||
if (glAssertionsEnabled) {
|
||||
throw new GlException(errorMsg);
|
||||
} else {
|
||||
Log.e(TAG, errorMsg);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue