Преглед изворни кода

[PSP] Don't swizzle streaming textures

It was causing issues in the teststreaming demo and unswizzling
later is inefficient and causes issues.
Wouter Wijsman пре 4 година
родитељ
комит
66ee79bd68
1 измењених фајлова са 2 додато и 1 уклоњено
  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