mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[client] egl: add debug prints for renderStartup errors
This commit is contained in:
parent
f66486b0c7
commit
5f3bd778c0
@ -639,11 +639,17 @@ static bool egl_renderStartup(LG_Renderer * renderer, bool useDMA)
|
|||||||
|
|
||||||
this->nativeWind = app_getEGLNativeWindow();
|
this->nativeWind = app_getEGLNativeWindow();
|
||||||
if (!this->nativeWind)
|
if (!this->nativeWind)
|
||||||
|
{
|
||||||
|
DEBUG_ERROR("Failed to get EGL native window");
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
this->display = app_getEGLDisplay();
|
this->display = app_getEGLDisplay();
|
||||||
if (this->display == EGL_NO_DISPLAY)
|
if (this->display == EGL_NO_DISPLAY)
|
||||||
|
{
|
||||||
|
DEBUG_ERROR("Failed to get EGL display");
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
int maj, min;
|
int maj, min;
|
||||||
if (!eglInitialize(this->display, &maj, &min))
|
if (!eglInitialize(this->display, &maj, &min))
|
||||||
|
@ -149,6 +149,7 @@ static int renderThread(void * unused)
|
|||||||
{
|
{
|
||||||
if (!RENDERER(renderStartup, g_state.useDMA))
|
if (!RENDERER(renderStartup, g_state.useDMA))
|
||||||
{
|
{
|
||||||
|
DEBUG_ERROR("EGL render failed to start");
|
||||||
g_state.state = APP_STATE_SHUTDOWN;
|
g_state.state = APP_STATE_SHUTDOWN;
|
||||||
|
|
||||||
/* unblock threads waiting on the condition */
|
/* unblock threads waiting on the condition */
|
||||||
|
Loading…
Reference in New Issue
Block a user