From 453e1bfaec33f8a2e9a5d318732d7243d4c6ca9e Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sun, 26 Jun 2022 18:01:14 +0300 Subject: [PATCH] gl: Silence compiler warning --- rpcs3/Emu/RSX/GL/GLTexture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/RSX/GL/GLTexture.cpp b/rpcs3/Emu/RSX/GL/GLTexture.cpp index 3a0958f57..2a1b3cc7b 100644 --- a/rpcs3/Emu/RSX/GL/GLTexture.cpp +++ b/rpcs3/Emu/RSX/GL/GLTexture.cpp @@ -609,7 +609,7 @@ namespace gl } case texture::target::textureCUBE: { - const subresource_range range = { image_aspect::depth | image_aspect::color, dst_level, 1, dst_region.z , 1 }; + const subresource_range range = { image_aspect::depth | image_aspect::color, static_cast(dst_level), 1, dst_region.z , 1 }; scratch_view = std::make_unique(dst, GL_TEXTURE_2D, range); break; } @@ -619,7 +619,7 @@ namespace gl if (dst->levels() > 1) [[ likely ]] { - const subresource_range range = { image_aspect::depth | image_aspect::color, dst_level, 1, 0 , 1 }; + const subresource_range range = { image_aspect::depth | image_aspect::color, static_cast(dst_level), 1, 0 , 1 }; scratch_view = std::make_unique(dst, GL_TEXTURE_2D, range); } else