Permalink
Browse files

GLES: Avoid buffer on GLES2 for h=1 / CLUT.

  • Loading branch information...
unknownbrackets committed Dec 21, 2017
1 parent 78ebe94 commit 30871bfcd16f01a3776feb62522d37f71e49c7c3
Showing with 1 addition and 1 deletion.
  1. +1 −1 GPU/GLES/FramebufferManagerGLES.cpp
@@ -945,7 +945,7 @@ void FramebufferManagerGLES::PackFramebufferSync_(VirtualFramebuffer *vfb, int x
const int dstBpp = vfb->format == GE_FORMAT_8888 ? 4 : 2;
const int packWidth = std::min(vfb->fb_stride, std::min(x + w, (int)vfb->width));
if (gl_extensions.IsGLES && !gl_extensions.GLES3 && (packWidth != vfb->fb_stride)) {
if (gl_extensions.IsGLES && !gl_extensions.GLES3 && packWidth != vfb->fb_stride && h != 1) {
// Need to use a temp buffer, since GLES2 doesn't support GL_PACK_ROW_LENGTH.
convert = true;
}

0 comments on commit 30871bf

Please sign in to comment.