Fix reserved size for swap buffer command being too small on x86_64
This commit is contained in:
1 parent
e6209f3b7c
commit
81e2b6c0cf
2 files changed
+2
-2
No files matched your search
@@ -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 *) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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 *) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user