diff --git a/rpcs3/Emu/RSX/GL/GLTexture.cpp b/rpcs3/Emu/RSX/GL/GLTexture.cpp index 3a0958f578..2a1b3cc7be 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