From cb9fb452c68379c0a993095c8613c526f5f2344f Mon Sep 17 00:00:00 2001 From: vent Date: Sat, 11 Jan 2025 17:09:12 +0000 Subject: [PATCH] Fix segault in textures_image_loading (#190) --- examples/textures/textures_image_loading.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/textures/textures_image_loading.zig b/examples/textures/textures_image_loading.zig index 96f0db1..959a855 100644 --- a/examples/textures/textures_image_loading.zig +++ b/examples/textures/textures_image_loading.zig @@ -33,8 +33,8 @@ pub fn main() anyerror!void { // De-Initialization //-------------------------------------------------------------------------------------- - defer rl.unloadTexture(texture); // Texture unloading 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