Browse Source

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

Alex Szpakowski 10 years ago
parent
commit
9cf1868b81
1 changed files with 1 additions and 7 deletions
  1. 1 7
      src/modules/graphics/opengl/Graphics.cpp

+ 1 - 7
src/modules/graphics/opengl/Graphics.cpp

@@ -237,13 +237,7 @@ bool Graphics::setMode(int width, int height, bool &sRGB)
 	// Enable blending
 	// Enable blending
 	glEnable(GL_BLEND);
 	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);
 	glHint(GL_POINT_SMOOTH_HINT, GL_NICEST);
 
 
 	// Auto-generated mipmaps should be the best quality possible
 	// Auto-generated mipmaps should be the best quality possible