Skip to content
Snippets Groups Projects
Commit 931dde17 authored by dg's avatar dg
Browse files

Reloading after diabling shaders should still work

git-svn-id: http://svn.net-core.org/repos/t-engine4@5886 51575b47-30f0-44d4-a5cc-537603b46e54
parent aee95663
No related branches found
No related tags found
No related merge requests found
......@@ -119,6 +119,7 @@ end
function _M:createProgram(def)
local shad = core.shader.newProgram()
if not shad then return nil end
if def.vert then shad:attach(self:getVertex(def.vert)) end
if def.frag then shad:attach(self:getFragment(def.frag)) end
if not shad:compile() then return nil end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment