Răsfoiți Sursa

Fixed DirectXDriver in debug (#355)

Pascal Peridont 7 ani în urmă
părinte
comite
5fca117471
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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.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);
 		ctx.params = dx.Driver.createBuffer(shader.paramsSize * 16, Dynamic, ConstantBuffer, CpuWrite, None, 0, null);
 		#if debug
 		#if debug
-		ctx.debugSource = source;
+		ctx.debugSource = shader.code;
 		#end
 		#end
 		return { s : ctx, bytes : bytes };
 		return { s : ctx, bytes : bytes };
 	}
 	}