Browse Source

Improved performance of ImageData:mapPixel when JIT compilation is unavailable (e.g. on iOS and Android)

Alex Szpakowski 9 years ago
parent
commit
9900051647
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/image/wrap_ImageData.cpp

+ 1 - 1
src/modules/image/wrap_ImageData.cpp

@@ -164,7 +164,7 @@ int w_ImageData__mapPixelUnsafe(lua_State *L)
 			lua_pushvalue(L, 2);
 			lua_pushnumber(L, x);
 			lua_pushnumber(L, y);
-			pixel c = t->getPixel(x, y);
+			pixel c = t->getPixelUnsafe(x, y);
 			lua_pushnumber(L, c.r);
 			lua_pushnumber(L, c.g);
 			lua_pushnumber(L, c.b);