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:
Pokechu22
2022-09-26 17:49:49 -07:00
parent 56fce3ba8a
commit b90d23158f
3 changed files with 48 additions and 31 deletions

View File

@ -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);