From 6ed3819f1a859ffc350c4aaad132f164478f5d79 Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 19 May 2018 09:35:35 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BB=E5=BE=AA=E7=8E=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/script/graphics/luaopen_graphics.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/script/graphics/luaopen_graphics.cpp') diff --git a/src/script/graphics/luaopen_graphics.cpp b/src/script/graphics/luaopen_graphics.cpp index 50b1921..6e78e36 100644 --- a/src/script/graphics/luaopen_graphics.cpp +++ b/src/script/graphics/luaopen_graphics.cpp @@ -19,11 +19,8 @@ namespace lua static struct { color curRenderColor; - Font* curFont = 0; - Font* defaultFont = 0; - } context; /** @@ -40,10 +37,6 @@ namespace lua setting.vsync = luax_getfield_bool(L, 1, "vsync"); wnd->init(setting); - // set default blend method - glEnable(GL_BLEND); - glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); - // init success luax_pushboolean(L, true); return 1; -- cgit v1.1-26-g67d0