diff --git a/Windows_Libs/Dev/Render/RendererTexture.cpp b/Windows_Libs/Dev/Render/RendererTexture.cpp index 295670b..0ffeb10 100644 --- a/Windows_Libs/Dev/Render/RendererTexture.cpp +++ b/Windows_Libs/Dev/Render/RendererTexture.cpp @@ -201,8 +201,8 @@ void Renderer::TextureData(int width, int height, void* data, int level, C4JRend level, NULL, data, - (UINT)(width * 4), - (UINT)(width * height * 4) + static_cast(width * 4), + static_cast(width * height * 4) ); } @@ -228,8 +228,8 @@ void Renderer::TextureDataUpdate(int xoffset, int yoffset, int width, int height level, &box, data, - (UINT)(width * 4), - (UINT)(width * height * 4) + static_cast(width * 4), + static_cast(width * height * 4) ); }