From 1b80853118623e636740f5dbdc207d47939db937 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Tue, 9 Apr 2013 10:57:43 -0300 Subject: [PATCH] Fixed an OpenGL error when MSAA isn't supported --- src/modules/graphics/opengl/Graphics.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/graphics/opengl/Graphics.cpp b/src/modules/graphics/opengl/Graphics.cpp index d5e50e31c..c2f32000a 100644 --- a/src/modules/graphics/opengl/Graphics.cpp +++ b/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);