stdgregwar 5 лет назад
Родитель
Сommit
0b7b0977fc
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/render/psp/SDL_render_psp.c

+ 2 - 2
src/render/psp/SDL_render_psp.c

@@ -259,6 +259,7 @@ TextureSwizzle(PSP_TextureData *psp_texture)
     psp_texture->data = data;
     psp_texture->data = data;
     psp_texture->swizzled = SDL_TRUE;
     psp_texture->swizzled = SDL_TRUE;
 
 
+    sceKernelDcacheWritebackRange(psp_texture->data, psp_texture->size);
     return 1;
     return 1;
 }
 }
 int TextureUnswizzle(PSP_TextureData *psp_texture)
 int TextureUnswizzle(PSP_TextureData *psp_texture)
@@ -291,8 +292,6 @@ int TextureUnswizzle(PSP_TextureData *psp_texture)
     if(!data)
     if(!data)
         return 0;
         return 0;
 
 
-    sceKernelDcacheWritebackAll();
-
     ydst = (unsigned char *)data;
     ydst = (unsigned char *)data;
 
 
     for(blocky = 0; blocky < heightblocks; ++blocky)
     for(blocky = 0; blocky < heightblocks; ++blocky)
@@ -326,6 +325,7 @@ int TextureUnswizzle(PSP_TextureData *psp_texture)
 
 
     psp_texture->swizzled = SDL_FALSE;
     psp_texture->swizzled = SDL_FALSE;
 
 
+    sceKernelDcacheWritebackRange(psp_texture->data, psp_texture->size);
     return 1;
     return 1;
 }
 }