gl : refix

This commit is contained in:
vlj 2015-06-04 23:45:45 +02:00 committed by Vincent Lejeune
parent 744b56b12d
commit ca90c05b0a
1 changed files with 3 additions and 3 deletions

View File

@ -184,11 +184,11 @@ void GLTexture::Init(RSXTexture& tex)
log2width = log(tex.GetWidth()) / log(2); log2width = log(tex.GetWidth()) / log(2);
log2height = log(tex.GetHeight()) / log(2); log2height = log(tex.GetHeight()) / log(2);
for (int i = 0; i < tex.GetWidth(); i++) for (int i = 0; i < tex.GetHeight(); i++)
{ {
for (int j = 0; j < tex.GetHeight(); j++) for (int j = 0; j < tex.GetWidth(); j++)
{ {
dst[(i*tex.GetHeight()) + j] = src[LinearToSwizzleAddress(j, i, 0, log2width, log2height, 0)]; dst[(i*tex.GetWidth()) + j] = src[LinearToSwizzleAddress(j, i, 0, log2width, log2height, 0)];
} }
} }
} }