mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Improved support for non-PVRTC compressed texture formats in .pvr files.
This commit is contained in:
@@ -165,7 +165,7 @@ Variant *Variant::fromLua(lua_State *L, int n, bool allowTables)
|
||||
if (allowTables)
|
||||
{
|
||||
bool success = true;
|
||||
std::vector<std::pair<Variant*, Variant*> > *table = new std::vector<std::pair<Variant*, Variant*> >();
|
||||
std::vector<std::pair<Variant*, Variant*>> *table = new std::vector<std::pair<Variant*, Variant*>>();
|
||||
lua_pushnil(L);
|
||||
while (lua_next(L, n))
|
||||
{
|
||||
@@ -230,7 +230,7 @@ void Variant::toLua(lua_State *L)
|
||||
// I can do (at the moment).
|
||||
break;
|
||||
case TABLE:
|
||||
lua_newtable(L);
|
||||
lua_createtable(L, 0, (int) data.table->size());
|
||||
for (size_t i = 0; i < data.table->size(); ++i)
|
||||
{
|
||||
std::pair<Variant*, Variant*> &kv = data.table->at(i);
|
||||
|
||||
Reference in New Issue
Block a user