Minor graphics fixes

This commit is contained in:
Eduardo Bart
2012-06-18 20:58:56 -03:00
parent cb58d2dcfa
commit 5a048eb7ea
7 changed files with 24 additions and 14 deletions

View File

@@ -25,7 +25,6 @@ local shadersPanel
function Shaders.init()
importStyle 'shaders.otui'
Keyboard.bindKeyDown(HOTKEY, Shaders.toggle)
shadersPanel = createWidget('ShadersPanel', GameInterface.getMapPanel())
@@ -37,6 +36,8 @@ function Shaders.init()
map:setMapShader(g_shaders.getShader(option))
end
if not g_graphics.canUseShaders() then return end
for _i,opts in pairs(MAP_SHADERS) do
local shader = g_shaders.createFragmentShader(opts.name, opts.frag)