diff --git a/src/platforms/rcore_comma.c b/src/platforms/rcore_comma.c index 819790594..c9b3934bf 100644 --- a/src/platforms/rcore_comma.c +++ b/src/platforms/rcore_comma.c @@ -280,7 +280,8 @@ static int init_egl () { EGLBoolean ok = eglSwapInterval(platform.egl.display, FLAG_VSYNC_HINT ? 1 : 0); if (ok == EGL_FALSE) { - TRACELOG(LOG_WARNING, "COMMA: eglSwapInterval failed (vsync %s): 0x%04x", FLAG_VSYNC_HINT ? "ON" : "OFF", eglGetError()); + TRACELOG(LOG_WARNING, "COMMA: eglSwapInterval failed. Error code: %s", eglGetErrorString(eglGetError())); + return -1; } platform.egl.context = eglCreateContext(platform.egl.display, config, EGL_NO_CONTEXT, context_config);