From 5c3b7242f25eb460b29cb6dae515e589de025330 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 3 Mar 2026 05:49:39 +0000 Subject: [PATCH] Complete TODO: implement GLimp_LogComment for SDL platform Writes renderer debug comments to the log file when glw_state.log_fp is set. Matches Win32 and Linux implementations. Co-authored-by: Tim Fox --- src/platform/sdl/sdl_glimp.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/platform/sdl/sdl_glimp.c b/src/platform/sdl/sdl_glimp.c index 4fe1323acc..61d5df53ba 100644 --- a/src/platform/sdl/sdl_glimp.c +++ b/src/platform/sdl/sdl_glimp.c @@ -115,10 +115,15 @@ void GLimp_Minimize( void ) =============== GLimp_LogComment =============== +Writes renderer debug comments to the log file when glw_state.log_fp is set. +Platform function used by both OpenGL and Vulkan renderers. */ void GLimp_LogComment( const char *comment ) { - (void)comment; + if ( glw_state.log_fp ) + { + fprintf( glw_state.log_fp, "%s", comment ); + } }