Browse Source

Fix Pass:compute example;

bjorn 1 year ago
parent
commit
22bdd67092
2 changed files with 2 additions and 2 deletions
  1. 1 1
      api/init.lua
  2. 1 1
      api/lovr/graphics/Pass/compute.lua

File diff suppressed because it is too large
+ 1 - 1
api/init.lua


+ 1 - 1
api/lovr/graphics/Pass/compute.lua

@@ -123,7 +123,7 @@ return {
         local sx, sy = shader:getWorkgroupSize()
         local gx, gy = math.ceil(tw / sx), math.ceil(th / sy)
 
-        local computer = lovr.graphics.getPass('compute')
+        local computer = lovr.graphics.newPass()
 
         computer:setShader(shader)
         computer:send('image', texture)

Some files were not shown because too many files changed in this diff