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")
|
||||
|
||||
|
||||
|
||||
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()
|
||||
|
|
Reference in a new issue