Fix reserved size for swap buffer command being too small on x86_64

This commit is contained in:
Zack Middleton 2015-10-16 20:50:25 -05:00
parent e6209f3b7c
commit 81e2b6c0cf
2 changed files with 2 additions and 2 deletions

View file

@ -147,7 +147,7 @@ returns NULL if there is not enough space for important commands
============= =============
*/ */
void *R_GetCommandBuffer( int bytes ) { void *R_GetCommandBuffer( int bytes ) {
return R_GetCommandBufferReserved( bytes, sizeof ( swapBuffersCommand_t ) ); return R_GetCommandBufferReserved( bytes, PAD( sizeof( swapBuffersCommand_t ), sizeof(void *) ) );
} }

View file

@ -154,7 +154,7 @@ returns NULL if there is not enough space for important commands
============= =============
*/ */
void *R_GetCommandBuffer( int bytes ) { void *R_GetCommandBuffer( int bytes ) {
return R_GetCommandBufferReserved( bytes, sizeof ( swapBuffersCommand_t ) ); return R_GetCommandBufferReserved( bytes, PAD( sizeof( swapBuffersCommand_t ), sizeof(void *) ) );
} }