mirror of https://github.com/encounter/SDL.git
[PSP] Don't swizzle streaming textures
It was causing issues in the teststreaming demo and unswizzling later is inefficient and causes issues.
This commit is contained in:
parent
f97a29f6e1
commit
66ee79bd68
|
@ -556,7 +556,8 @@ static int
|
||||||
TextureShouldSwizzle(PSP_TextureData* psp_texture, SDL_Texture *texture)
|
TextureShouldSwizzle(PSP_TextureData* psp_texture, SDL_Texture *texture)
|
||||||
{
|
{
|
||||||
return !((texture->access == SDL_TEXTUREACCESS_TARGET) && InVram(psp_texture->data))
|
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
|
static void
|
||||||
|
|
Loading…
Reference in New Issue