From ea8ecb2d2151180e98cea45a4afbe274eadfe800 Mon Sep 17 00:00:00 2001 From: Bigfoot71 Date: Sat, 17 May 2025 17:01:20 +0200 Subject: [PATCH] check swInit --- src/rlgl.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/rlgl.h b/src/rlgl.h index a71d4def7..8f6c11fbe 100644 --- a/src/rlgl.h +++ b/src/rlgl.h @@ -2330,7 +2330,11 @@ void rlglInit(int width, int height) #endif #if defined(GRAPHICS_API_OPENGL_11_SOFTWARE) - swInit(width, height); + if (!swInit(width, height)) + { + TRACELOG(RL_LOG_ERROR, "RLGL: Software renderer initialization failed!"); + exit(-1); + } #endif #if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)