Print warning when a render command is dropped
This commit is contained in:
1 parent
fcde28419f
commit
dcbcb12ba2
2 files changed
+2
No files matched your search
@@ -131,6 +131,7 @@ void *R_GetCommandBufferReserved( int bytes, int reservedBytes ) {
|
||||
ri.Error( ERR_FATAL, "R_GetCommandBuffer: bad size %i", bytes );
|
||||
}
|
||||
// if we run out of room, just start dropping commands
|
||||
ri.Printf( PRINT_WARNING, "Failed to allocate render command of size %d\n", bytes );
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -138,6 +138,7 @@ void *R_GetCommandBufferReserved( int bytes, int reservedBytes ) {
|
||||
ri.Error( ERR_FATAL, "R_GetCommandBuffer: bad size %i", bytes );
|
||||
}
|
||||
// if we run out of room, just start dropping commands
|
||||
ri.Printf( PRINT_WARNING, "Failed to allocate render command of size %d\n", bytes );
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user