From 02f131c7fe9f0322203ab16ffb5f3ca1d561bd64 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 4 Aug 2008 14:01:42 +0000 Subject: [PATCH] From Philip Lowman, workaround of Centos 5's missing definition of GL_MAX_SAMPLES_EXT. --- include/osg/FrameBufferObject | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/osg/FrameBufferObject b/include/osg/FrameBufferObject index de1a52326..dc5e66d55 100644 --- a/include/osg/FrameBufferObject +++ b/include/osg/FrameBufferObject @@ -94,6 +94,12 @@ #define GL_MAX_SAMPLES_EXT 0x8D57 #endif +#ifndef GL_MAX_SAMPLES_EXT +// Workaround for Centos 5 and other distros that define +// GL_EXT_framebuffer_multisample but not GL_MAX_SAMPLES_EXT +#define GL_MAX_SAMPLES_EXT 0x8D57 +#endif + #ifndef GL_NV_framebuffer_multisample_coverage #define GL_NV_framebuffer_multisample_coverage 1 #define GL_RENDERBUFFER_COVERAGE_SAMPLES_NV 0x8CAB