Browse Source

Fixed an OpenGL error when MSAA isn't supported

Alex Szpakowski 12 years ago
parent
commit
1b80853118
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/modules/graphics/opengl/Graphics.cpp

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

@@ -131,7 +131,8 @@ bool Graphics::setMode(int width, int height, WindowFlags *flags)
 	initializeContext();
 
 	// Make sure antialiasing works when set elsewhere
-	glEnable(GL_MULTISAMPLE);
+	if (GLEE_VERSION_1_3 || GLEE_ARB_multisample)
+		glEnable(GL_MULTISAMPLE);
 
 	// Enable blending
 	glEnable(GL_BLEND);