Scripthook checks if flags has bit 1 set, which in this case is DXGI_PRESENT_TEST. If so, it just calls the original Present.
The lack of this check caused issues in our own Present hook (as it is being called at a different point than normal with that flag set). This properly mimics Scripthook's behavior.
Scripthook checks if
flags
has bit 1 set, which in this case isDXGI_PRESENT_TEST
. If so, it just calls the original Present. The lack of this check caused issues in our own Present hook (as it is being called at a different point than normal with that flag set). This properly mimics Scripthook's behavior.