mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 17:04:55 +00:00
Fix VISIGen hang on X11/NVIDIA
pthread_cancel left some internal X/glX mutexes in an inconsistent state; removing it altogether allows VISIRenderer to clean up properly.
This commit is contained in:
@@ -254,6 +254,7 @@ int main(int argc, const char** argv) {
|
||||
Log.report(logvisor::Fatal, fmt("unable to make GLX context current"));
|
||||
XUnlockDisplay(xDisp);
|
||||
|
||||
UpdatePercent(0);
|
||||
renderer.Run(UpdatePercent);
|
||||
|
||||
XLockDisplay(xDisp);
|
||||
@@ -295,7 +296,6 @@ int main(int argc, const char** argv) {
|
||||
}
|
||||
|
||||
renderer.Terminate();
|
||||
pthread_cancel(clientThread.native_handle());
|
||||
if (clientThread.joinable())
|
||||
clientThread.join();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user