Fix errors in 88cef7e8: misc: chore: Use explicit types & fix object creation

This commit is contained in:
KeatonTheBot
2026-08-12 15:45:13 -05:00
parent 8ccf83d9a3
commit 5422aa35b9
15 changed files with 44 additions and 42 deletions
+2 -2
View File
@@ -560,7 +560,7 @@ namespace LibKenjinx
_surfacePtr = Interop.GetSurfacePtr();
_window = Interop.GetWindowsHandle();
Vk? api = VulkanLoader?.GetApi() ?? Vk.GetApi();
Vk api = VulkanLoader?.GetApi() ?? Vk.GetApi();
if (api.TryGetInstanceExtension(new Instance(instance), out KhrAndroidSurface surfaceExtension))
{
AndroidSurfaceCreateInfoKHR createInfo = new()
@@ -569,7 +569,7 @@ namespace LibKenjinx
Window = (nint*)_surfacePtr,
};
Result result = surfaceExtension.CreateAndroidSurface(new Instance(instance), in createInfo, null, out SurfaceKHR* surface);
Result result = surfaceExtension.CreateAndroidSurface(new Instance(instance), in createInfo, null, out SurfaceKHR surface);
// If a rotation was applied before the surface was created → apply it now
if (_window != 0 && _pendingRotationDegrees != -1)