separate game loading from surface creation

This commit is contained in:
Emmanuel Hansen 2023-07-28 19:42:34 +00:00
parent 398fb78a31
commit a050e5c6c0
7 changed files with 158 additions and 104 deletions

View file

@ -218,7 +218,6 @@ namespace LibRyujinx
public unsafe static JBoolean JniInitializeGraphicsRendererNative(JEnvRef jEnv,
JObjectLocalRef jObj,
JArrayLocalRef extensionsArray,
JLong surfacePtr,
JLong driverHandle)
{
if (Renderer != null)
@ -254,10 +253,6 @@ namespace LibRyujinx
extensions.Add(GetString(jEnv, ext));
}
_surfaceEvent.Set();
_surfacePtr = surfacePtr;
if((long)driverHandle != 0)
{
VulkanLoader = new VulkanLoader((IntPtr)(long)driverHandle);