Fix segault in textures_image_loading (#190)

This commit is contained in:
vent 2025-01-11 17:09:12 +00:00 committed by GitHub
parent 41022159ad
commit cb9fb452c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,8 +33,8 @@ pub fn main() anyerror!void {
// De-Initialization // De-Initialization
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
defer rl.unloadTexture(texture); // Texture unloading
defer rl.closeWindow(); // Close window and OpenGL context defer rl.closeWindow(); // Close window and OpenGL context
defer rl.unloadTexture(texture); // Texture unloading
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
rl.setTargetFPS(60); // Set our game to run at 60 frames-per-second rl.setTargetFPS(60); // Set our game to run at 60 frames-per-second