Clear the modified flag after the image texture has been synchronized.
[GB.SDL2] * BUG: Clear the modified flag after the image texture has been synchronized.
This commit is contained in:
parent
250c292820
commit
9ed4595ec5
1 changed files with 3 additions and 1 deletions
|
@ -145,7 +145,9 @@ SDL_Texture *SDL_GetTextureFromImage(SDL_Image *image, CWINDOW *window, bool mod
|
||||||
|
|
||||||
SDL_Texture *IMAGE_get_texture(CIMAGE *_object, CWINDOW *window)
|
SDL_Texture *IMAGE_get_texture(CIMAGE *_object, CWINDOW *window)
|
||||||
{
|
{
|
||||||
return SDL_GetTextureFromImage(IMAGE_get(THIS), window, THIS->img.modified);
|
SDL_Texture *texture = SDL_GetTextureFromImage(IMAGE_get(THIS), window, THIS->img.modified);
|
||||||
|
THIS->img.modified = FALSE;
|
||||||
|
return texture;
|
||||||
}
|
}
|
||||||
|
|
||||||
CIMAGE *IMAGE_create_from_window(CWINDOW *window, int x, int y, int w, int h)
|
CIMAGE *IMAGE_create_from_window(CWINDOW *window, int x, int y, int w, int h)
|
||||||
|
|
Loading…
Reference in a new issue