emugl: print EGL error when eglMakeCurrent fails
This commit is contained in:
parent
05fb78e5bf
commit
4b344ad204
1 changed files with 2 additions and 2 deletions
|
|
@ -655,7 +655,7 @@ bool Renderer::bindContext(HandleType p_context, HandleType p_drawSurface,
|
||||||
draw ? draw->getEGLSurface() : EGL_NO_SURFACE,
|
draw ? draw->getEGLSurface() : EGL_NO_SURFACE,
|
||||||
read ? read->getEGLSurface() : EGL_NO_SURFACE,
|
read ? read->getEGLSurface() : EGL_NO_SURFACE,
|
||||||
ctx ? ctx->getEGLContext() : EGL_NO_CONTEXT)) {
|
ctx ? ctx->getEGLContext() : EGL_NO_CONTEXT)) {
|
||||||
ERROR("eglMakeCurrent failed");
|
ERROR("eglMakeCurrent failed: 0x%04x", s_egl.eglGetError());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -737,7 +737,7 @@ bool Renderer::bind_locked() {
|
||||||
|
|
||||||
if (!s_egl.eglMakeCurrent(m_eglDisplay, m_pbufSurface, m_pbufSurface,
|
if (!s_egl.eglMakeCurrent(m_eglDisplay, m_pbufSurface, m_pbufSurface,
|
||||||
m_pbufContext)) {
|
m_pbufContext)) {
|
||||||
ERROR("eglMakeCurrent failed");
|
ERROR("eglMakeCurrent failed: 0x%04x", s_egl.eglGetError());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue