From 58b89bbac30a65ae8a7bc0f2063422670e3ec0b1 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 1 Feb 2010 19:22:54 +0000 Subject: Fix sculpt mode drawing performance regression, happened on at least NVidia/Linux. Disabling GL_MULTISAMPLE apparently makes things go much slower even though we're not using it, why is a mystery to me. --- source/blender/gpu/intern/gpu_draw.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/blender/gpu') diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c index 74b9f362939..fdc0eb7148c 100644 --- a/source/blender/gpu/intern/gpu_draw.c +++ b/source/blender/gpu/intern/gpu_draw.c @@ -1314,7 +1314,9 @@ void GPU_state_init(void) glCullFace(GL_BACK); glDisable(GL_CULL_FACE); - glDisable(GL_MULTISAMPLE_ARB); + /* calling this makes drawing very slow when AA is not set up in ghost + on Linux/NVIDIA. + glDisable(GL_MULTISAMPLE); */ } /* debugging aid */ -- cgit v1.2.3