浏览代码

hxsdl -> hl

ncannasse 9 年之前
父节点
当前提交
792a82da59
共有 1 个文件被更改,包括 2 次插入2 次删除
  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);