Fixed the point style and color mask getting reset in love.window.setMode (thanks Shell32)

This commit is contained in:
Alex Szpakowski
2015-01-31 01:22:54 -04:00
parent 665cdc4ae7
commit 9cf1868b81
+1 -7
View File
@@ -237,13 +237,7 @@ bool Graphics::setMode(int width, int height, bool &sRGB)
// Enable blending
glEnable(GL_BLEND);
// Enable all color component writes.
ColorMask colormask = {true, true, true, true};
setColorMask(colormask);
// Enable line/point smoothing.
setLineStyle(LINE_SMOOTH);
glEnable(GL_POINT_SMOOTH);
// Make sure smooth points look OK.
glHint(GL_POINT_SMOOTH_HINT, GL_NICEST);
// Auto-generated mipmaps should be the best quality possible