summaryrefslogtreecommitdiffhomepage
path: root/examples/web/textures/textures_mouse_painting.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/web/textures/textures_mouse_painting.c')
-rw-r--r--examples/web/textures/textures_mouse_painting.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/web/textures/textures_mouse_painting.c b/examples/web/textures/textures_mouse_painting.c
index b363e4a..0773bee 100644
--- a/examples/web/textures/textures_mouse_painting.c
+++ b/examples/web/textures/textures_mouse_painting.c
@@ -177,7 +177,7 @@ void UpdateDrawFrame(void)
// NOTE: Saving painted texture to a default named image
if ((btnSaveMouseHover && IsMouseButtonReleased(MOUSE_LEFT_BUTTON)) || IsKeyPressed(KEY_S))
{
- Image image = GetTextureData(target.texture);
+ Image image = LoadImageFromTexture(target.texture);
ImageFlipVertical(&image);
ExportImage(image, "my_amazing_texture_painting.png");
UnloadImage(image);