Cleaned up some shader code.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2015-03-02 15:18:12 -04:00
parent 3536f2665f
commit 3fea174008
8 changed files with 52 additions and 80 deletions
+2 -8
View File
@@ -94,15 +94,9 @@ int w_Image_getData(lua_State *L)
Image *i = luax_checkimage(L, 1);
if (i->isCompressed())
{
love::image::CompressedData *t = i->getCompressedData();
luax_pushtype(L, IMAGE_COMPRESSED_DATA_ID, t);
}
luax_pushtype(L, IMAGE_COMPRESSED_DATA_ID, i->getCompressedData());
else
{
love::image::ImageData *t = i->getImageData();
luax_pushtype(L, IMAGE_IMAGE_DATA_ID, t);
}
luax_pushtype(L, IMAGE_IMAGE_DATA_ID, i->getImageData());
return 1;
}