Browse Source

Fix Window_HUD;

bjorn 1 year ago
parent
commit
54c8b76897
1 changed files with 2 additions and 1 deletions
  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
 -- Simple 2D triangle mesh
 local triangle = lovr.graphics.newBuffer(
 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
 -- Constants
 local pixwidth = lovr.system.getWindowWidth()   -- Window pixel width and height
 local pixwidth = lovr.system.getWindowWidth()   -- Window pixel width and height