mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-07 02:16:26 +00:00
fix PSP texure artifacts
This commit is contained in:
@@ -259,6 +259,7 @@ TextureSwizzle(PSP_TextureData *psp_texture)
|
||||
psp_texture->data = data;
|
||||
psp_texture->swizzled = SDL_TRUE;
|
||||
|
||||
sceKernelDcacheWritebackRange(psp_texture->data, psp_texture->size);
|
||||
return 1;
|
||||
}
|
||||
int TextureUnswizzle(PSP_TextureData *psp_texture)
|
||||
@@ -291,8 +292,6 @@ int TextureUnswizzle(PSP_TextureData *psp_texture)
|
||||
if(!data)
|
||||
return 0;
|
||||
|
||||
sceKernelDcacheWritebackAll();
|
||||
|
||||
ydst = (unsigned char *)data;
|
||||
|
||||
for(blocky = 0; blocky < heightblocks; ++blocky)
|
||||
@@ -326,6 +325,7 @@ int TextureUnswizzle(PSP_TextureData *psp_texture)
|
||||
|
||||
psp_texture->swizzled = SDL_FALSE;
|
||||
|
||||
sceKernelDcacheWritebackRange(psp_texture->data, psp_texture->size);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user