浏览代码

Fixed DirectXDriver in debug (#355)

Pascal Peridont 7 年之前
父节点
当前提交
5fca117471
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h3d/impl/DirectXDriver.hx

+ 1 - 1
h3d/impl/DirectXDriver.hx

@@ -549,7 +549,7 @@ class DirectXDriver extends h3d.impl.Driver {
 		ctx.globals = dx.Driver.createBuffer(shader.globalsSize * 16, Dynamic, ConstantBuffer, CpuWrite, None, 0, null);
 		ctx.params = dx.Driver.createBuffer(shader.paramsSize * 16, Dynamic, ConstantBuffer, CpuWrite, None, 0, null);
 		#if debug
-		ctx.debugSource = source;
+		ctx.debugSource = shader.code;
 		#end
 		return { s : ctx, bytes : bytes };
 	}