mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
gl: Fix texture unswizzling
Fix multi texture test
This commit is contained in:
parent
694d4e01a0
commit
744b56b12d
1 changed files with 2 additions and 2 deletions
|
@ -184,9 +184,9 @@ void GLTexture::Init(RSXTexture& tex)
|
|||
log2width = log(tex.GetWidth()) / log(2);
|
||||
log2height = log(tex.GetHeight()) / log(2);
|
||||
|
||||
for (int i = 0; i < tex.GetHeight(); i++)
|
||||
for (int i = 0; i < tex.GetWidth(); i++)
|
||||
{
|
||||
for (int j = 0; j < tex.GetWidth(); j++)
|
||||
for (int j = 0; j < tex.GetHeight(); j++)
|
||||
{
|
||||
dst[(i*tex.GetHeight()) + j] = src[LinearToSwizzleAddress(j, i, 0, log2width, log2height, 0)];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue