Report lack of support for the subtract blendmode through the Blue Screen of LÖVE instead of stderr spam.

This commit is contained in:
Bill Meltsner
2012-03-03 20:33:55 -05:00
parent ae79ed061a
commit fc6a9df304
2 changed files with 9 additions and 2 deletions
@@ -532,7 +532,14 @@ namespace opengl
if (!Graphics::getConstant(str, mode))
return luaL_error(L, "Invalid blend mode: %s", str);
instance->setBlendMode(mode);
try
{
instance->setBlendMode(mode);
}
catch (love::Exception &e)
{
return luaL_error(L, e.what());
}
return 0;
}