Set s_hookObjcMethods true in MTLHookObjcMethods

PR Feedback
This commit is contained in:
Jake Turner
2022-05-18 04:54:49 +01:00
committed by Baldur Karlsson
parent 814ad814cd
commit 39cdfeb138
+1
View File
@@ -79,6 +79,7 @@ void WrappedMTLDevice::MTLHookObjcMethods()
class_getInstanceMethod(objc_lookUpClass("CAMetalLayer"), sel_registerName("nextDrawable"));
g_real_CAMetalLayer_nextDrawable =
method_setImplementation(m, (IMP)hooked_CAMetalLayer_nextDrawable);
s_hookObjcMethods = true;
}
void WrappedMTLDevice::MTLFixupForMetalDriverAssert()