Updated love.graphics.polygon and love.graphics.point to work with OpenGL ES.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2015-01-22 18:28:24 -04:00
parent 2c3d94b4f8
commit 27aec48d1a
2 changed files with 9 additions and 7 deletions
+2 -1
View File
@@ -431,6 +431,8 @@ bool Window::setContext(int msaa, bool vsync, bool sRGB)
std::string title = "Unable to initialize OpenGL";
std::string message = "This program requires a graphics card and video drivers which support OpenGL 2.1 or OpenGL ES 2.";
std::cerr << title << std::endl << message << std::endl;
// Display a message box with the error, but only once.
if (!displayedContextError)
{
@@ -438,7 +440,6 @@ bool Window::setContext(int msaa, bool vsync, bool sRGB)
displayedContextError = true;
}
std::cerr << title << std::endl << message << std::endl;
return false;
}