mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-03-24 19:38:32 -06:00
Fix compressed pitch calculation
This commit is contained in:
parent
e761b3235c
commit
bca7b02ae9
@ -1474,14 +1474,14 @@ namespace gl
|
||||
case GL_COMPRESSED_RGBA_S3TC_DXT1_EXT:
|
||||
{
|
||||
m_compressed = true;
|
||||
m_pitch = width / 2;
|
||||
m_pitch = utils::align(width, 4) / 2;
|
||||
break;
|
||||
}
|
||||
case GL_COMPRESSED_RGBA_S3TC_DXT3_EXT:
|
||||
case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT:
|
||||
{
|
||||
m_compressed = true;
|
||||
m_pitch = width;
|
||||
m_pitch = utils::align(width, 4);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user