mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-11 16:49:27 +01:00
ES2 buildfix - glGetTexImage is not available
This commit is contained in:
1 parent
903bd07d6e
commit
e5b8d91c9f
1 file changed
+2
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user