Browse Source

hxsdl -> hl

ncannasse 9 years ago
parent
commit
792a82da59
1 changed files with 2 additions and 2 deletions
  1. 2 2
      h3d/impl/GlDriver.hx

+ 2 - 2
h3d/impl/GlDriver.hx

@@ -222,7 +222,7 @@ class GlDriver extends Driver {
 		switch( which ) {
 		case Globals:
 			if( s.globals != null ) {
-				#if hxsdl
+				#if hl
 				gl.uniform4fv(s.globals, @:privateAccess (cast buf.globals.toData() : hl.types.ArrayBase.ArrayF32).bytes, 0, s.shader.globalsSize * 4);
 				#else
 				var a = new Float32Array(buf.globals.toData()).subarray(0, s.shader.globalsSize * 4);
@@ -231,7 +231,7 @@ class GlDriver extends Driver {
 			}
 		case Params:
 			if( s.params != null ) {
-				#if hxsdl
+				#if hl
 				gl.uniform4fv(s.params, @:privateAccess (cast buf.params.toData() : hl.types.ArrayBase.ArrayF32).bytes, 0, s.shader.paramsSize * 4);
 				#else
 				var a = new Float32Array(buf.params.toData()).subarray(0, s.shader.paramsSize * 4);