mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Canvases now have OpenGL ES support, updated Texture:setWrap to return false for repeat wrap modes in non-power-of-two textures if OpenGL ES 2 is used and the implementation doesn't have support for repeat on NPOT textures.
--HG-- branch : minor
This commit is contained in:
@@ -105,8 +105,8 @@ int w_Texture_setWrap(lua_State *L)
|
||||
if (!Texture::getConstant(tstr, w.t))
|
||||
return luaL_error(L, "Invalid wrap mode, %s", tstr);
|
||||
|
||||
t->setWrap(w);
|
||||
return 0;
|
||||
luax_pushboolean(L, t->setWrap(w));
|
||||
return 1;
|
||||
}
|
||||
|
||||
int w_Texture_getWrap(lua_State *L)
|
||||
|
||||
Reference in New Issue
Block a user