浏览代码

Fix Window_HUD;

bjorn 2 年之前
父节点
当前提交
54c8b76897
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      examples/Flatscreen/Window_HUD/main.lua

+ 2 - 1
examples/Flatscreen/Window_HUD/main.lua

@@ -18,7 +18,8 @@ font:setPixelDensity(1)
 
 -- Simple 2D triangle mesh
 local triangle = lovr.graphics.newBuffer(
-  {{0,-1,0}, {0.75,1,0}, {-0.75,1,0}}, {'vec3:VertexPosition'})
+  {{'VertexPosition', 'vec3'}},
+  {{0,-1,0}, {0.75,1,0}, {-0.75,1,0}})
 
 -- Constants
 local pixwidth = lovr.system.getWindowWidth()   -- Window pixel width and height