| commit | 3597b73bc6e3e169f1d360de80d77e6e0ab65e96 | [log] [tgz] |
|---|---|---|
| author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed May 22 20:12:50 2013 +0000 |
| committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed May 22 20:12:50 2013 +0000 |
| tree | 8d5b8e905d7642fa3891bda2b38d2bd49ce521ac | |
| parent | be1d02e52862f8afa5a4056f66d0eacb4f16e6fd [diff] [blame] |
expand SkLua to handle creation of its own State add lua sample BUG= R=robertphillips@google.com Review URL: https://codereview.chromium.org/15742009 git-svn-id: http://skia.googlecode.com/svn/trunk@9247 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/utils/SkLuaCanvas.cpp b/src/utils/SkLuaCanvas.cpp index be6cb66..d3ecd74 100644 --- a/src/utils/SkLuaCanvas.cpp +++ b/src/utils/SkLuaCanvas.cpp
@@ -27,7 +27,7 @@ } ~AutoCallLua() { - lua_State* L = this->getL(); + lua_State* L = this->get(); if (lua_pcall(L, 1, 0, 0) != LUA_OK) { SkDebugf("lua err: %s\n", lua_tostring(L, -1)); }