From cece5222cf4dfa4d3b45225ffbcd87849877bce3 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Wed, 29 Apr 2026 23:13:21 +1000 Subject: [PATCH] OpenGLDevice: Fix incorrect mipmap step in upload Wasn't used so it didn't break anything... --- src/util/opengl_texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/opengl_texture.cpp b/src/util/opengl_texture.cpp index 218dd22ab..410175975 100644 --- a/src/util/opengl_texture.cpp +++ b/src/util/opengl_texture.cpp @@ -264,7 +264,7 @@ std::unique_ptr OpenGLTexture::Create(u32 width, u32 height, u32 } if (data_ptr) - data_ptr += data_pitch * current_width; + data_ptr += data_pitch * current_height; current_width = (current_width > 1) ? (current_width / 2u) : current_width; current_height = (current_height > 1) ? (current_height / 2u) : current_height;