diff options
author | Zack Middleton <zturtleman@gmail.com> | 2015-10-16 20:50:25 -0500 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2016-04-07 11:12:56 +0100 |
commit | 6c232efd91fd288342bc6865a36fa1c8c0a23575 (patch) | |
tree | 265b29f9326126befbc8d1799fa74e38db322aaf | |
parent | 0972dc8edfdadae375ab0a517e324178f8ec99f0 (diff) |
Fix reserved size for swap buffer command being too small on x86_64
-rw-r--r-- | src/renderergl1/tr_cmds.c | 2 | ||||
-rw-r--r-- | src/renderergl2/tr_cmds.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/renderergl1/tr_cmds.c b/src/renderergl1/tr_cmds.c index 0ff7faee..58f199e3 100644 --- a/src/renderergl1/tr_cmds.c +++ b/src/renderergl1/tr_cmds.c @@ -148,7 +148,7 @@ returns NULL if there is not enough space for important commands ============= */ void *R_GetCommandBuffer( int bytes ) { - return R_GetCommandBufferReserved( bytes, sizeof ( swapBuffersCommand_t ) ); + return R_GetCommandBufferReserved( bytes, PAD( sizeof( swapBuffersCommand_t ), sizeof(void *) ) ); } diff --git a/src/renderergl2/tr_cmds.c b/src/renderergl2/tr_cmds.c index 4599511b..fe0ee82b 100644 --- a/src/renderergl2/tr_cmds.c +++ b/src/renderergl2/tr_cmds.c @@ -155,7 +155,7 @@ returns NULL if there is not enough space for important commands ============= */ void *R_GetCommandBuffer( int bytes ) { - return R_GetCommandBufferReserved( bytes, sizeof ( swapBuffersCommand_t ) ); + return R_GetCommandBufferReserved( bytes, PAD( sizeof( swapBuffersCommand_t ), sizeof(void *) ) ); } |