Added love.window.close (resolves issue #1059), and renamed love.window.isCreated to love.window.isOpen.

This commit is contained in:
Alex Szpakowski
2015-07-18 13:22:55 -03:00
parent 2cce18946d
commit 4cd725cee6
6 changed files with 54 additions and 58 deletions
+2 -2
View File
@@ -69,7 +69,7 @@ Graphics::Graphics()
currentWindow->getWindow(w, h, wsettings);
if (currentWindow->isCreated())
if (currentWindow->isOpen())
setMode(w, h, wsettings.sRGB);
}
@@ -355,7 +355,7 @@ bool Graphics::isActive() const
{
// The graphics module is only completely 'active' if there's a window, a
// context, and the active variable is set.
return active && isCreated() && currentWindow && currentWindow->isCreated();
return active && isCreated() && currentWindow && currentWindow->isOpen();
}
static void APIENTRY debugCB(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei /*len*/, const GLchar *msg, const GLvoid* /*usr*/)