rm texture variant of newMaterial;
Does not make sense anymore now that Pass:setMaterial(Texture) exists.
@@ -1280,17 +1280,6 @@ static int l_lovrGraphicsNewMaterial(lua_State* L) {
MaterialInfo info;
memset(&info, 0, sizeof(info));
- Texture* texture = luax_totype(L, 1, Texture);
-
- if (texture) {
- info.texture = texture;
- info.data.color[0] = 1.f;
- info.data.color[1] = 1.f;
- info.data.color[2] = 1.f;
- info.data.color[3] = 1.f;
- info.data.uvScale[0] = 1.f;
- info.data.uvScale[1] = 1.f;
- } else {
luaL_checktype(L, 1, LUA_TTABLE);
lua_getfield(L, 1, "color");
@@ -1399,7 +1388,6 @@ static int l_lovrGraphicsNewMaterial(lua_State* L) {
lua_getfield(L, 1, "normalTexture");
info.normalTexture = luax_opttexture(L, -1);
lua_pop(L, 1);
- }
Material* material = lovrMaterialCreate(&info);
luax_pushtype(L, Material, material);
