summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/SWOGLWindow.cpp
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2022-09-26 17:49:49 -0700
committerPokechu22 <Pokechu022@gmail.com>2022-09-26 19:43:57 -0700
commitb90d23158f26814fe6dc2c90acdaa3361a4ebf4b (patch)
treedc8233cdae3efd349b9246a6426961ba542cdf78 /Source/Core/VideoBackends/Software/SWOGLWindow.cpp
parent56fce3ba8a8a3645da0250fbac91b9940e45cf8c (diff)
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.
Diffstat (limited to 'Source/Core/VideoBackends/Software/SWOGLWindow.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/SWOGLWindow.cpp2
1 files changed, 1 insertions, 1 deletions
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<GLsizei>(sw_image->GetConfig().width),
static_cast<GLsizei>(sw_image->GetConfig().height), 0, GL_RGBA, GL_UNSIGNED_BYTE,
- sw_image->GetData());
+ sw_image->GetData(0, 0));
glUseProgram(m_image_program);