summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-28 02:09:06 +0100
committerGitHub <noreply@github.com>2018-10-28 02:09:06 +0100
commitd63f5acb15f21763b83d839628100269cea72216 (patch)
treee09358ae8f798aceea74e4018ef8a20d496d6797 /src
parentMerge pull request #1596 from FearlessTobi/port-4367 (diff)
parentgl_rasterizer_cache: Fix compiler warning (diff)
downloadyuzu-d63f5acb15f21763b83d839628100269cea72216.tar
yuzu-d63f5acb15f21763b83d839628100269cea72216.tar.gz
yuzu-d63f5acb15f21763b83d839628100269cea72216.tar.bz2
yuzu-d63f5acb15f21763b83d839628100269cea72216.tar.lz
yuzu-d63f5acb15f21763b83d839628100269cea72216.tar.xz
yuzu-d63f5acb15f21763b83d839628100269cea72216.tar.zst
yuzu-d63f5acb15f21763b83d839628100269cea72216.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.cpp4
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);