Don't consider different OpenGL versions when re-creating the window after a previous window and OpenGL context has been created. love.graphics has never supported switching GL versions mid-game, so we should prevent it from ever happening.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2016-09-11 21:40:00 -03:00
parent 4dd1b3a83f
commit 11328a23cf
3 changed files with 26 additions and 11 deletions
+2
View File
@@ -122,6 +122,7 @@ private:
void setGLFramebufferAttributes(int msaa, bool sRGB);
void setGLContextAttributes(const ContextAttribs &attribs);
bool checkGLVersion(const ContextAttribs &attribs, std::string &outversion);
std::vector<ContextAttribs> getContextAttribsList() const;
bool createWindowAndContext(int x, int y, int w, int h, Uint32 windowflags, int msaa);
// Update the saved window settings based on the window's actual state.
@@ -147,6 +148,7 @@ private:
bool displayedWindowError;
bool hasSDL203orEarlier;
ContextAttribs contextAttribs;
}; // Window