Prevent overflows and underflows in love.graphics.push and love.graphics.pop (bug #118)

Maximum is hardware maximum - 5, so the engine itself has a few matrices.
This commit is contained in:
Bart van Strien
2011-06-08 22:45:28 +02:00
parent 0179b53bb6
commit efb8efb45e
3 changed files with 32 additions and 5 deletions
+2
View File
@@ -115,6 +115,8 @@ namespace opengl
DisplayMode currentMode;
float lineWidth;
GLint matrixLimit;
GLint userMatrices;
public: