Fix assembly load exception on startup

lambda, crash, static local method, no crash... got it
This commit is contained in:
YoshiRulz 2021-06-15 11:33:47 +10:00
parent 22144401e2
commit 0173e8d514
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 2 additions and 1 deletions

View File

@ -186,7 +186,8 @@ namespace BizHawk.Client.EmuHawk
return CheckRenderer(glOpenTK);
default:
case EDispMethod.GdiPlus:
return new IGL_GdiPlus(self => new GLControlWrapper_GdiPlus(self));
static GLControlWrapper_GdiPlus CreateGLControlWrapper(IGL_GdiPlus self) => new(self); // inlining as lambda causes crash, don't wanna know why --yoshi
return new IGL_GdiPlus(CreateGLControlWrapper);
}
}