Pārlūkot izejas kodu

[PSP] Don't swizzle streaming textures

It was causing issues in the teststreaming demo and unswizzling
later is inefficient and causes issues.
Wouter Wijsman 3 gadi atpakaļ
vecāks
revīzija
66ee79bd68
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      src/render/psp/SDL_render_psp.c

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

@@ -556,7 +556,8 @@ static int
 TextureShouldSwizzle(PSP_TextureData* psp_texture, SDL_Texture *texture)
 {
     return !((texture->access == SDL_TEXTUREACCESS_TARGET) && InVram(psp_texture->data))
-             && (texture->w >= 16 || texture->h >= 16);
+            && texture->access != SDL_TEXTUREACCESS_STREAMING
+            && (texture->w >= 16 || texture->h >= 16);
 }
 
 static void