From 9ab06e7368822b25b5a0a8f695378a10ab575c6c Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Thu, 14 Dec 2017 03:12:24 +0100 Subject: [PATCH] gs-mipmapper: Fix type conversion warnings --- source/gs-mipmapper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/gs-mipmapper.cpp b/source/gs-mipmapper.cpp index 2f4b05a6..16954f71 100644 --- a/source/gs-mipmapper.cpp +++ b/source/gs-mipmapper.cpp @@ -30,7 +30,7 @@ extern "C" { GS::MipMapper::MipMapper() : m_rt(GS_RGBA, GS_ZS_NONE), m_vb(65535) { // Sub layers start here now. - double_t size = 0.5, offset = 0.0; + float_t size = 0.5, offset = 0.0; for (size_t layer = 0; layer < MAX_LAYERS; layer++) { // Large Block if (layer == 0) { @@ -139,7 +139,7 @@ gs_texture_t* GS::MipMapper::Render(gs_texture_t* intex) { uint32_t layers = 1, size = height; if (width > height) size = width; layers = static_cast(ceil(log(double_t(size)) / log(2.0))); - size = pow(2, layers); + size = (uint32_t)pow(2, layers); // Render m_buf = GS::Texture(size, size, GS_RGBA, 1, nullptr, GS_DYNAMIC);