mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-24 03:15:31 +00:00
Invalidate texture in the UnlockTextureMethod
This commit is contained in:
parent
52bf5b1de9
commit
fbb440d167
|
@ -158,6 +158,15 @@ PS2_LockTexture(SDL_Renderer * renderer, SDL_Texture * texture,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
PS2_UnlockTexture(SDL_Renderer * renderer, SDL_Texture * texture)
|
||||||
|
{
|
||||||
|
GSTEXTURE *ps2_texture = (GSTEXTURE *) texture->driverdata;
|
||||||
|
PS2_RenderData *data = (PS2_RenderData *) renderer->driverdata;
|
||||||
|
|
||||||
|
gsKit_TexManager_invalidate(data->gsGlobal, ps2_texture);
|
||||||
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
PS2_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
|
PS2_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
|
||||||
const SDL_Rect * rect, const void *pixels, int pitch)
|
const SDL_Rect * rect, const void *pixels, int pitch)
|
||||||
|
@ -181,16 +190,11 @@ PS2_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gsKit_TexManager_invalidate(data->gsGlobal, ps2_texture);
|
PS2_UnlockTexture(renderer, texture);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
PS2_UnlockTexture(SDL_Renderer * renderer, SDL_Texture * texture)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
PS2_SetTextureScaleMode(SDL_Renderer * renderer, SDL_Texture * texture, SDL_ScaleMode scaleMode)
|
PS2_SetTextureScaleMode(SDL_Renderer * renderer, SDL_Texture * texture, SDL_ScaleMode scaleMode)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue