mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Use luaL_check/optinteger instead of luaL_check/optnumber when getting integer arguments to functions. Resolves issue #1251.
--HG-- branch : minor
This commit is contained in:
@@ -96,7 +96,7 @@ void Mesh::drawInstanced(love::graphics::Graphics *gfx, const love::Matrix4 &m,
|
||||
if (vertexCount <= 0 || instancecount <= 0)
|
||||
return;
|
||||
|
||||
if (instancecount > 1 && !gl.isInstancingSupported())
|
||||
if (instancecount > 1 && !gfx->getCapabilities().features[Graphics::FEATURE_INSTANCING])
|
||||
throw love::Exception("Instancing is not supported on this system.");
|
||||
|
||||
gfx->flushStreamDraws();
|
||||
|
||||
Reference in New Issue
Block a user