diff --git a/src/starling/utils/RenderUtil.hx b/src/starling/utils/RenderUtil.hx index f9d9473f..59e4e440 100644 --- a/src/starling/utils/RenderUtil.hx +++ b/src/starling/utils/RenderUtil.hx @@ -236,12 +236,7 @@ class RenderUtil else if (#if (haxe_ver < 4.2) Std.is #else Std.isOfType #end(profile, Int)) profiles = [cast profile]; else if (#if (haxe_ver < 4.2) Std.is #else Std.isOfType #end(profile, String)) - #if hl - // for some reason on HashLink if you don't do that it will result in a 'Can't cast String to i32' error profiles = [Std.string(profile)]; - #else - profiles = [profile]; - #end else if (#if (haxe_ver < 4.2) Std.is #else Std.isOfType #end(profile, Array)) { var dynProfiles:Array = cast(profile, Array); @@ -254,12 +249,7 @@ class RenderUtil } else { - #if hl - // for some reason on HashLink if you don't do that it will result in a 'Can't cast String to i32' error profiles.push(Std.string(prof)); - #else - profiles.push(prof); - #end } } } @@ -322,4 +312,4 @@ class RenderUtil requestNextProfile(); } -} \ No newline at end of file +}