Permalink
Browse files

Debugger: Fix texture readback in GLES.

Was using the wrong size, causing the buffer not to be allocated large
enough.  This caused crashes sometimes.
  • Loading branch information...
unknownbrackets committed Aug 30, 2018
1 parent 00daa00 commit 1b79924038f134d22e3a18a41ac30643ada7fd08
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/native/thin3d/GLQueueRunner.cpp
@@ -1166,7 +1166,7 @@ void GLQueueRunner::PerformReadbackImage(const GLRStep &pass) {
int pixelStride = pass.readback_image.srcRect.w;
glPixelStorei(GL_PACK_ALIGNMENT, 4);
GLRect2D rect = pass.readback.srcRect;
GLRect2D rect = pass.readback_image.srcRect;
int size = 4 * rect.w * rect.h;
if (size > readbackBufferSize_) {

0 comments on commit 1b79924

Please sign in to comment.