[client] check for failure to map pbo memory

This commit is contained in:
Geoffrey McRae committed 2019-05-27 01:39:01 +10:00
1 parent 664d7dccdb
commit 4cf2c7a350
2 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -1 +1 @@
B1-rc2-3-g21b02efb4d+1
B1-rc2-1-g9b1f5b52a6+1
+6
View File
@@ -223,6 +223,12 @@ bool egl_texture_setup(EGL_Texture * texture, enum EGL_PixelFormat pixFmt, size_
GL_MAP_UNSYNCHRONIZED_BIT |
GL_MAP_INVALIDATE_BUFFER_BIT
);
if (!texture->pboMap[i])
{
DEBUG_ERROR("glMapBufferRange failed for %d of %lu bytes", i, texture->pboBufferSize);
return false;
}
}
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0);
}