mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-13 21:51:09 +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