Fix getContextsDevice on Hashlink

This commit is contained in:
ACrazyTown
2024-08-16 21:55:23 +02:00
committed by Josh Tynjala
parent 31700a034c
commit ed05aa2674

View File

@@ -76,12 +76,13 @@ class ALC
public static function getContextsDevice(context:ALContext):ALDevice
{
#if (lime_cffi && lime_openal && !macro) #if !hl var handle:Dynamic = NativeCFFI.lime_alc_get_contexts_device(context);
#if (lime_cffi && lime_openal && !macro)
var handle:Dynamic = NativeCFFI.lime_alc_get_contexts_device(context);
if (handle != null)
{
return new ALDevice(handle);
} #else #end
}
#end
return null;