mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 23:02:01 +00:00
Fix reserved size for swap buffer command being too small on x86_64
This commit is contained in:
parent
e6209f3b7c
commit
81e2b6c0cf
2 changed files with 2 additions and 2 deletions
|
@ -147,7 +147,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 *) ) );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -154,7 +154,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 *) ) );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue