From 5f3bd778c0cf4a55f82f1f01cdde082acd1fc021 Mon Sep 17 00:00:00 2001 From: Quantum Date: Fri, 13 Aug 2021 22:04:54 -0400 Subject: [PATCH] [client] egl: add debug prints for renderStartup errors --- client/renderers/EGL/egl.c | 6 ++++++ client/src/main.c | 1 + 2 files changed, 7 insertions(+) diff --git a/client/renderers/EGL/egl.c b/client/renderers/EGL/egl.c index 0a82f985..c75d0807 100644 --- a/client/renderers/EGL/egl.c +++ b/client/renderers/EGL/egl.c @@ -639,11 +639,17 @@ static bool egl_renderStartup(LG_Renderer * renderer, bool useDMA) this->nativeWind = app_getEGLNativeWindow(); if (!this->nativeWind) + { + DEBUG_ERROR("Failed to get EGL native window"); return false; + } this->display = app_getEGLDisplay(); if (this->display == EGL_NO_DISPLAY) + { + DEBUG_ERROR("Failed to get EGL display"); return false; + } int maj, min; if (!eglInitialize(this->display, &maj, &min)) diff --git a/client/src/main.c b/client/src/main.c index 6b62f1d9..7147eb0f 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -149,6 +149,7 @@ static int renderThread(void * unused) { if (!RENDERER(renderStartup, g_state.useDMA)) { + DEBUG_ERROR("EGL render failed to start"); g_state.state = APP_STATE_SHUTDOWN; /* unblock threads waiting on the condition */