Skip to content

Commit

Permalink
Fix getContextsDevice on Hashlink
Browse files Browse the repository at this point in the history
  • Loading branch information
ACrazyTown authored and joshtynjala committed Aug 16, 2024
1 parent 31700a0 commit ed05aa2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lime/media/openal/ALC.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ed05aa2

Please sign in to comment.