Choose better alignment for heavy-duty rendering structures, patch by Matt Turner (#4981)
This commit is contained in:
parent
185d2d6b60
commit
5f63ab9160
5 changed files with 11 additions and 4 deletions
|
@ -195,6 +195,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 ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue