Commits

Alex Szpakowski  committed 2bd63be

Fixed the error message when only one argument is given to newImageFont (resolves issue #737)

  • Participants
  • Parent commits a8f3aa5

Comments (0)

Files changed (1)

File src/modules/graphics/opengl/wrap_Graphics.cpp

 	// Convert to Rasterizer if necessary.
 	if (luax_istype(L, 1, IMAGE_IMAGE_DATA_T))
 	{
+		luaL_checkstring(L, 2);
 		int idxs[] = {1, 2};
 		luax_convobj(L, idxs, 2, "font", "newRasterizer");
 	}