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