From 3d8557dc440669975b708efb486e0eb86276e4d8 Mon Sep 17 00:00:00 2001 From: Ian Curtis Date: Mon, 29 Jul 2024 10:54:59 +0100 Subject: [PATCH] fix minor compile warning --- Src/Graphics/New3D/TextureBank.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Graphics/New3D/TextureBank.cpp b/Src/Graphics/New3D/TextureBank.cpp index a4f3717..50cf3f9 100644 --- a/Src/Graphics/New3D/TextureBank.cpp +++ b/Src/Graphics/New3D/TextureBank.cpp @@ -60,7 +60,7 @@ void New3D::TextureBank::UploadTextures(int level, int x, int y, int width, int int subX = x - mipXBase[level]; int subY = y - mipYBase[level]; - for (unsigned i = 0; i < height; i++) { + for (int i = 0; i < height; i++) { glTexSubImage2D(GL_TEXTURE_2D, level, subX, subY + i, width, 1, GL_RED_INTEGER, GL_UNSIGNED_SHORT, m_textureRam + ((y + i) * 2048) + x); } }