From b90d23158f26814fe6dc2c90acdaa3361a4ebf4b Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Mon, 26 Sep 2022 17:49:49 -0700 Subject: Software: Fix mipmaps and uneven strides in SWTexture I think this is only used for texture dumping, but this resolves some failed assertions and glitchy results. --- Source/Core/VideoBackends/Software/SWOGLWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoBackends/Software/SWOGLWindow.cpp') diff --git a/Source/Core/VideoBackends/Software/SWOGLWindow.cpp b/Source/Core/VideoBackends/Software/SWOGLWindow.cpp index 387375cc85..a002e3e519 100644 --- a/Source/Core/VideoBackends/Software/SWOGLWindow.cpp +++ b/Source/Core/VideoBackends/Software/SWOGLWindow.cpp @@ -105,7 +105,7 @@ void SWOGLWindow::ShowImage(const AbstractTexture* image, glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, static_cast(sw_image->GetConfig().width), static_cast(sw_image->GetConfig().height), 0, GL_RGBA, GL_UNSIGNED_BYTE, - sw_image->GetData()); + sw_image->GetData(0, 0)); glUseProgram(m_image_program); -- cgit v1.2.3