DRW: Fix state not being locked

Regression introduced by rBe12c08e8d170b7ca40f204a5b0423c23a9fbc2c1
This commit is contained in:
Clément Foucault 2020-08-22 01:30:15 +02:00
parent a1f54be042
commit a204324966
1 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,9 @@ typedef struct DRWCommandsState {
void drw_state_set(DRWState state)
{
/* Mask locked state. */
state = (~DST.state_lock & state) | (DST.state_lock & DST.state);
if (DST.state == state) {
return;
}