win32u: Fix screen tearing
This issue is caused by several problems combined:
-
980a2e3c This patch caused a deadlock in an OpenGL test.
-
This PR fixed one error, but introduced a new screen corruption issue in some Software.
Simply reverting (2) cannot solve the problem.
This is my new change, which resolves both the deadlock and the screen corruption issue by adjusting the lock scope.
Signed-off-by: zhengxianwei baikaishiuc@gmail.com
Edited by xianwei zheng