diff options
author | Frederic Laing <27208977+FreddyFunk@users.noreply.github.com> | 2018-10-26 13:26:08 +0200 |
---|---|---|
committer | Frederic Laing <27208977+FreddyFunk@users.noreply.github.com> | 2018-10-27 13:06:26 +0200 |
commit | 0bf24d310ed8346434e6fa30d7b41f708c068a67 (patch) | |
tree | 254f2470695873081b856b2cf86b2f683637cd3d | |
parent | Merge pull request #1533 from FernandoS27/lmem (diff) | |
download | yuzu-0bf24d310ed8346434e6fa30d7b41f708c068a67.tar yuzu-0bf24d310ed8346434e6fa30d7b41f708c068a67.tar.gz yuzu-0bf24d310ed8346434e6fa30d7b41f708c068a67.tar.bz2 yuzu-0bf24d310ed8346434e6fa30d7b41f708c068a67.tar.lz yuzu-0bf24d310ed8346434e6fa30d7b41f708c068a67.tar.xz yuzu-0bf24d310ed8346434e6fa30d7b41f708c068a67.tar.zst yuzu-0bf24d310ed8346434e6fa30d7b41f708c068a67.zip |
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp index 591ec7998..04a024137 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp @@ -960,8 +960,8 @@ void CachedSurface::FlushGLBuffer() { glPixelStorei(GL_PACK_ROW_LENGTH, static_cast<GLint>(params.width)); ASSERT(!tuple.compressed); glBindBuffer(GL_PIXEL_PACK_BUFFER, 0); - glGetTextureImage(texture.handle, 0, tuple.format, tuple.type, gl_buffer.size(), - gl_buffer.data()); + glGetTextureImage(texture.handle, 0, tuple.format, tuple.type, + static_cast<GLsizei>(gl_buffer.size()), gl_buffer.data()); glPixelStorei(GL_PACK_ROW_LENGTH, 0); ConvertFormatAsNeeded_FlushGLBuffer(gl_buffer, params.pixel_format, params.width, params.height); |