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

This commit is contained in:
Zack Middleton committed 2015-10-16 20:50:25 -05:00
1 parent e6209f3b7c
commit 81e2b6c0cf
2 files changed
+2 -2

No files matched your search

+1 -1
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 *) ) );
} }
+1 -1
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 *) ) );
} }