浏览代码

Fix render-to-depth-texture test;

bjorn 2 年之前
父节点
当前提交
ec7be18bf7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tests/render-to-depth-texture.lua

+ 1 - 1
tests/render-to-depth-texture.lua

@@ -1,4 +1,4 @@
 function lovr.load()
   t = lovr.graphics.newTexture(100, 100, { format = 'd32f' })
-  p = lovr.graphics.getPass('render', t)
+  p = lovr.graphics.getPass({ depth = t })
 end