love.window.setMode no longer destroys and recreates the window

This commit is contained in:
Alex Szpakowski
2020-11-02 18:08:35 -04:00
parent 905e5baf06
commit 316fccfe1b
2 changed files with 79 additions and 45 deletions
+2 -2
View File
@@ -129,8 +129,6 @@ public:
private:
void close(bool allowExceptions);
struct ContextAttribs
{
int versionMajor;
@@ -139,6 +137,8 @@ private:
bool debug;
};
void close(bool allowExceptions);
void setGLFramebufferAttributes(bool sRGB);
void setGLContextAttributes(const ContextAttribs &attribs);
bool checkGLVersion(const ContextAttribs &attribs, std::string &outversion);