diff options
Diffstat (limited to 'src/renderer/tr_cmds.c')
-rw-r--r-- | src/renderer/tr_cmds.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/renderer/tr_cmds.c b/src/renderer/tr_cmds.c index 833c0f07..3958a718 100644 --- a/src/renderer/tr_cmds.c +++ b/src/renderer/tr_cmds.c @@ -196,6 +196,7 @@ void *R_GetCommandBuffer( int bytes ) { renderCommandList_t *cmdList; cmdList = &backEndData[tr.smpFrame]->commands; + bytes = PAD(bytes, sizeof(void *)); // always leave room for the end of list command if ( cmdList->used + bytes + 4 > MAX_RENDER_COMMANDS ) { |