mirror of
https://github.com/love2d/love.git
synced 2026-08-20 20:49:54 +02:00
Close issue #519: Maximum stack depth reached error message.
This commit is contained in:
@@ -1098,7 +1098,7 @@ love::image::ImageData *Graphics::newScreenshot(love::image::Image *image)
|
|||||||
void Graphics::push()
|
void Graphics::push()
|
||||||
{
|
{
|
||||||
if (userMatrices == matrixLimit)
|
if (userMatrices == matrixLimit)
|
||||||
throw Exception("Maximum stack depth reached.");
|
throw Exception("Maximum stack depth reached. (More pushes than pops?)");
|
||||||
glPushMatrix();
|
glPushMatrix();
|
||||||
++userMatrices;
|
++userMatrices;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user