[client] egl: show error for glMapBufferRange instead of glBindbuffer

This commit is contained in:
eater 2021-05-02 16:48:36 +02:00 committed by Geoffrey McRae
parent ee380451ca
commit 62725bcb9d

View File

@ -151,16 +151,16 @@ static bool egl_texture_map(EGL_Texture * texture, uint8_t i)
GL_MAP_INVALIDATE_BUFFER_BIT |
GL_MAP_PERSISTENT_BIT
);
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0);
if (!texture->buf[i].map)
{
DEBUG_EGL_ERROR("glMapBufferRange failed for %d of %lu bytes", i,
texture->pboBufferSize);
return false;
}
return true;
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0);
return texture->buf[i].map;
}
static void egl_texture_unmap(EGL_Texture * texture, uint8_t i)