From 9cf1868b814931bd91a8975632573b2ef8177378 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sat, 31 Jan 2015 01:22:54 -0400 Subject: [PATCH] Fixed the point style and color mask getting reset in love.window.setMode (thanks Shell32) --- src/modules/graphics/opengl/Graphics.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/modules/graphics/opengl/Graphics.cpp b/src/modules/graphics/opengl/Graphics.cpp index 1a38dd8df..4787aed01 100644 --- a/src/modules/graphics/opengl/Graphics.cpp +++ b/src/modules/graphics/opengl/Graphics.cpp @@ -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