mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Don't call glGetFloat every time love.graphics.getSystemLimits is called.
This commit is contained in:
@@ -1661,13 +1661,10 @@ Graphics::Stats Graphics::getStats() const
|
||||
|
||||
double Graphics::getSystemLimit(SystemLimit limittype) const
|
||||
{
|
||||
GLfloat limits[2];
|
||||
|
||||
switch (limittype)
|
||||
{
|
||||
case Graphics::LIMIT_POINT_SIZE:
|
||||
glGetFloatv(GL_ALIASED_POINT_SIZE_RANGE, limits);
|
||||
return (double) limits[1];
|
||||
return (double) gl.getMaxPointSize();
|
||||
case Graphics::LIMIT_TEXTURE_SIZE:
|
||||
return (double) gl.getMaxTextureSize();
|
||||
case Graphics::LIMIT_MULTI_CANVAS:
|
||||
|
||||
Reference in New Issue
Block a user