From 8eb8a386fdf33ec908eeafcae83d2eed74bc7fd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D7=93=D7=95=D7=A8=20=D7=A9=D7=A4=D7=99=D7=A8=D7=90?= Date: Fri, 23 Sep 2022 16:46:07 +0300 Subject: [PATCH] fixing the issue in the image_loading.py Fixed #89 --- examples/textures/image_loading.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/examples/textures/image_loading.py b/examples/textures/image_loading.py index 0ff6a52..889c099 100644 --- a/examples/textures/image_loading.py +++ b/examples/textures/image_loading.py @@ -5,9 +5,7 @@ screenHeight = 450 InitWindow(screenWidth, screenHeight, b"raylib [textures] example - image loading") - - -image = LoadImage(b"resources/raylib_logo.jpg") +image = LoadImage(b"resources/raylib_logo.png") texture = LoadTextureFromImage(image) UnloadImage(image) @@ -24,8 +22,6 @@ while not WindowShouldClose(): EndDrawing() +UnloadTexture(texture) - - -UnloadTexture(texture) CloseWindow()