Browse Source

Use Shader:clone properly;

bjorn 1 year ago
parent
commit
c3c07238cf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      shh.lua

+ 1 - 1
shh.lua

@@ -338,7 +338,7 @@ local function getComputeShader(kind, format)
     shaders[kind] = {}
     shaders[kind][format] = lovr.graphics.newShader(code, options)
   elseif not shaders[kind][format] then
-    shaders[kind][format] = shaders[kind][next(shaders[kind])]:clone(options)
+    shaders[kind][format] = shaders[kind][next(shaders[kind])]:clone(options.flags)
   end
 
   return shaders[kind][format]