Commit eaa3f192 authored by Dan Lipsa's avatar Dan Lipsa

Do not call kCFCoreFoundationVersionNumber for OSMesa.

parent efe20501
......@@ -60,7 +60,7 @@ PURPOSE. See the above copyright notice for more information.
#include <sstream>
#include <string>
#ifdef __APPLE__
#if defined(__APPLE__) && defined(VTK_OPENGL_HAS_OSMESA)
#include <CoreFoundation/CoreFoundation.h>
#endif
......@@ -680,7 +680,7 @@ bool vtkOpenGLRenderer::HaveApplePrimitiveIdBug()
return this->HaveApplePrimitiveIdBugValue;
}
#ifdef __APPLE__
#if defined(__APPLE__) && defined(VTK_OPENGL_HAS_OSMESA)
// Known working Apple+AMD systems:
// OpenGL vendor string: ATI Technologies Inc.
// OpenGL version string: 4.1 ATI-1.38.3
......@@ -766,9 +766,7 @@ bool vtkOpenGLRenderer::HaveApplePrimitiveIdBug()
//------------------------------------------------------------------------------
bool vtkOpenGLRenderer::HaveAppleQueryAllocationBug()
{
#ifndef __APPLE__ // Bug only applies to apple
return false;
#else
#if defined(__APPLE__) && defined(VTK_OPENGL_HAS_OSMESA)
enum class QueryAllocStatus { NotChecked, Yes, No };
static QueryAllocStatus hasBug = QueryAllocStatus::NotChecked;
......@@ -783,6 +781,8 @@ bool vtkOpenGLRenderer::HaveAppleQueryAllocationBug()
}
return hasBug == QueryAllocStatus::Yes;
#else
return false;
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment