Skip to content

Commit

Permalink
minor fix for haxe 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ncannasse committed Dec 6, 2017
1 parent 3ce96e2 commit 03ba2af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libs/directx/dx/Driver.hx
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,11 @@ class Driver {
var out = dxCompileShader(data.toUtf8(), data.length, source.toUtf8(), entryPoint.toUtf8(), target.toUtf8(), flags, isError, size);
if( isError )
throw String.fromUTF8(out);
#if (haxe_ver < 4)
throw "Haxe 4.x required";
#else
return out.toBytes(size);
#end
}

public static function disassembleShader( data : haxe.io.Bytes, flags : DisassembleFlags, ?comments : String ) : String {
Expand Down

0 comments on commit 03ba2af

Please sign in to comment.