Pārlūkot izejas kodu

Fix Window_HUD;

bjorn 2 gadi atpakaļ
vecāks
revīzija
54c8b76897
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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