[client] egl: more verbose error on texture egl failures

This commit is contained in:
Geoffrey McRae 2019-08-30 11:40:38 +10:00
parent 69522495de
commit da94075e7b
2 changed files with 4 additions and 3 deletions

View file

@ -1 +1 @@
fetch-1-gfce88fc72c+1
fetch-2-g69522495de+1

View file

@ -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 <stdlib.h>
@ -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;
}