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.
This commit is contained in:
1 parent
56fce3ba8a
commit
b90d23158f
3 files changed
+48
-31
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user