Fix getContextsDevice on Hashlink
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user