GL: Allow differentiation of error messages

In the absence of stack traces, these 2 messages were hard to differentiate
before this CL.

PiperOrigin-RevId: 544368823
This commit is contained in:
huangdarwin 2023-06-29 15:49:05 +00:00 committed by Tianyi Feng
parent f60f79bb10
commit 4e4045b98e

View File

@ -770,7 +770,7 @@ public final class GlUtil {
surface,
windowAttributes,
/* offset= */ 0);
checkEglException("Error creating surface");
checkEglException("Error creating a new EGL surface");
return eglSurface;
}
@ -783,7 +783,7 @@ public final class GlUtil {
getEglConfig(eglDisplay, configAttributes),
pbufferAttributes,
/* offset= */ 0);
checkEglException("Error creating surface");
checkEglException("Error creating a new EGL Pbuffer surface");
return eglSurface;
}