From da94075e7beecec7e81f7dd8b831cda8224e55e1 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 30 Aug 2019 11:40:38 +1000 Subject: [PATCH] [client] egl: more verbose error on texture egl failures --- VERSION | 2 +- client/renderers/EGL/texture.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index f22bed90..3a1c7647 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -fetch-1-gfce88fc72c+1 \ No newline at end of file +fetch-2-g69522495de+1 \ No newline at end of file diff --git a/client/renderers/EGL/texture.c b/client/renderers/EGL/texture.c index ce9af86f..177cbc6d 100644 --- a/client/renderers/EGL/texture.c +++ b/client/renderers/EGL/texture.c @@ -19,6 +19,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA #include "texture.h" #include "common/debug.h" +#include "debug.h" #include "utils.h" #include @@ -233,7 +234,7 @@ bool egl_texture_setup(EGL_Texture * texture, enum EGL_PixelFormat pixFmt, size_ if (!texture->pboMap[i]) { - DEBUG_ERROR("glMapBufferRange failed for %d of %lu bytes", i, texture->pboBufferSize); + EGL_ERROR("glMapBufferRange failed for %d of %lu bytes", i, texture->pboBufferSize); return false; } } @@ -313,7 +314,7 @@ enum EGL_TexStatus egl_texture_process(EGL_Texture * texture) case GL_WAIT_FAILED: glDeleteSync(texture->pboSync[pos]); - DEBUG_ERROR("glClientWaitSync failed"); + EGL_ERROR("glClientWaitSync failed"); return EGL_TEX_STATUS_ERROR; }