mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
(Hopefully) Fixed a bug where ImageData was not seen as preconverted by newImageFont (#73)
This commit is contained in:
@@ -246,7 +246,7 @@ namespace opengl
|
||||
int w_newImageFont(lua_State * L)
|
||||
{
|
||||
// Convert to ImageData if necessary.
|
||||
if(lua_isstring(L, 1) || luax_istype(L, 1, FILESYSTEM_FILE_T) || luax_istype(L, 1, DATA_T))
|
||||
if(lua_isstring(L, 1) || luax_istype(L, 1, FILESYSTEM_FILE_T) || (luax_istype(L, 1, DATA_T) && !luax_istype(L, 1, IMAGE_IMAGE_DATA_T)))
|
||||
luax_convobj(L, 1, "image", "newImageData");
|
||||
|
||||
// Convert to Rasterizer if necessary.
|
||||
|
||||
Reference in New Issue
Block a user