From 4cc6d8bf1092ccd26e9f2a66aa352c627bf22063 Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 16 Oct 2011 12:39:10 +0000 Subject: [PATCH] for now, turn off FBO if multisampling as their combination is not implemented yet git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11428 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=4dfe3710c36945df2d7de419207f05b6aa6a7ac4 --- vid_shared.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vid_shared.c b/vid_shared.c index 925ef592..1e1d4ae1 100644 --- a/vid_shared.c +++ b/vid_shared.c @@ -1126,7 +1126,15 @@ void VID_CheckExtensions(void) int samples = 0; qglGetIntegerv(GL_SAMPLES_ARB, &samples); if (samples > 1) + { qglEnable(GL_MULTISAMPLE_ARB); + + // currently, multisampling is not supported by our FBO paths + // so for now, disable FBOs if multisample is requested + // FIXME instead, support FBOs + multisampling, and turn off + // multisampling on chipsets that don't support this combination + vid.support.ext_framebuffer_object = false; + } else vid.allowalphatocoverage = false; } -- 2.39.2