From dcbcb12ba2f122e861545a50a47d81bb9199cfd6 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Tue, 18 Nov 2025 13:51:15 +0000 Subject: [PATCH] Print warning when a render command is dropped --- code/renderergl1/tr_cmds.c | 1 + code/renderergl2/tr_cmds.c | 1 + 2 files changed, 2 insertions(+) diff --git a/code/renderergl1/tr_cmds.c b/code/renderergl1/tr_cmds.c index cb1ab5f4..a1c3f712 100644 --- a/code/renderergl1/tr_cmds.c +++ b/code/renderergl1/tr_cmds.c @@ -131,6 +131,7 @@ void *R_GetCommandBufferReserved( int bytes, int reservedBytes ) { ri.Error( ERR_FATAL, "R_GetCommandBuffer: bad size %i", bytes ); } // if we run out of room, just start dropping commands + ri.Printf( PRINT_WARNING, "Failed to allocate render command of size %d\n", bytes ); return NULL; } diff --git a/code/renderergl2/tr_cmds.c b/code/renderergl2/tr_cmds.c index 305404c2..94a72710 100644 --- a/code/renderergl2/tr_cmds.c +++ b/code/renderergl2/tr_cmds.c @@ -138,6 +138,7 @@ void *R_GetCommandBufferReserved( int bytes, int reservedBytes ) { ri.Error( ERR_FATAL, "R_GetCommandBuffer: bad size %i", bytes ); } // if we run out of room, just start dropping commands + ri.Printf( PRINT_WARNING, "Failed to allocate render command of size %d\n", bytes ); return NULL; }