fixing the issue in the image_loading.py Fixed #89
This commit is contained in:
parent
9f11c90e29
commit
8eb8a386fd
1 changed files with 2 additions and 6 deletions
|
@ -5,9 +5,7 @@ screenHeight = 450
|
||||||
|
|
||||||
InitWindow(screenWidth, screenHeight, b"raylib [textures] example - image loading")
|
InitWindow(screenWidth, screenHeight, b"raylib [textures] example - image loading")
|
||||||
|
|
||||||
|
image = LoadImage(b"resources/raylib_logo.png")
|
||||||
|
|
||||||
image = LoadImage(b"resources/raylib_logo.jpg")
|
|
||||||
texture = LoadTextureFromImage(image)
|
texture = LoadTextureFromImage(image)
|
||||||
|
|
||||||
UnloadImage(image)
|
UnloadImage(image)
|
||||||
|
@ -24,8 +22,6 @@ while not WindowShouldClose():
|
||||||
|
|
||||||
EndDrawing()
|
EndDrawing()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
UnloadTexture(texture)
|
UnloadTexture(texture)
|
||||||
|
|
||||||
CloseWindow()
|
CloseWindow()
|
||||||
|
|
Reference in a new issue