Merge branch 'develop' into 8.3.0-Dev

This commit is contained in:
Josh Tynjala
2025-01-29 09:37:47 -08:00
11 changed files with 52 additions and 41 deletions

View File

@@ -96,7 +96,7 @@ class HTML5Thread {
var thread:HTML5Thread = new HTML5Thread(url.href, new Worker(url.href));
// Run `job` on the new thread.
thread.sendMessage(job);
thread.sendMessage(#if !haxe4 cast #end job);
return thread;
#else
@@ -416,7 +416,7 @@ abstract WorkFunction<T:haxe.Constraints.Function>(WorkFunctionData<T>) from Wor
else
{
#if !macro
this.sourceCode = (cast this.func:Function).toString();
this.sourceCode = (cast this.func #if haxe4 :Function #end).toString();
if (this.sourceCode.indexOf("[native code]") < 0)
{
// All set.

View File

@@ -34,9 +34,12 @@ class AudioManager
var alc = context.openal;
var device = alc.openDevice();
var ctx = alc.createContext(device);
alc.makeContextCurrent(ctx);
alc.processContext(ctx);
if (device != null)
{
var ctx = alc.createContext(device);
alc.makeContextCurrent(ctx);
alc.processContext(ctx);
}
}
#end
}