ES2 buildfix - glGetTexImage is not available

This commit is contained in:
Henrik Rydgård committed 2018-01-27 15:10:17 +01:00
1 parent 903bd07d6e
commit e5b8d91c9f
1 file changed
+2
+2
View File
@@ -961,6 +961,7 @@ void GLQueueRunner::PerformReadbackImage(const GLRStep &pass) {
CHECK_GL_ERROR_IF_DEBUG();
#ifndef USING_GLES2
int pixelStride = pass.readback_image.srcRect.w;
glPixelStorei(GL_PACK_ALIGNMENT, 4);
@@ -975,6 +976,7 @@ void GLQueueRunner::PerformReadbackImage(const GLRStep &pass) {
glPixelStorei(GL_PACK_ALIGNMENT, 4);
glGetTexImage(GL_TEXTURE_2D, pass.readback_image.mipLevel, GL_RGBA, GL_UNSIGNED_BYTE, readbackBuffer_);
#endif
CHECK_GL_ERROR_IF_DEBUG();
}