Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Christian Butz
VTK
Commits
eaa3f192
Commit
eaa3f192
authored
Oct 03, 2018
by
Dan Lipsa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not call kCFCoreFoundationVersionNumber for OSMesa.
parent
efe20501
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Rendering/OpenGL2/vtkOpenGLRenderer.cxx
Rendering/OpenGL2/vtkOpenGLRenderer.cxx
+5
-5
No files found.
Rendering/OpenGL2/vtkOpenGLRenderer.cxx
View file @
eaa3f192
...
...
@@ -60,7 +60,7 @@ PURPOSE. See the above copyright notice for more information.
#include <sstream>
#include <string>
#ifdef
__APPLE__
#if
def
ined(
__APPLE__
) && defined(VTK_OPENGL_HAS_OSMESA)
#include <CoreFoundation/CoreFoundation.h>
#endif
...
...
@@ -680,7 +680,7 @@ bool vtkOpenGLRenderer::HaveApplePrimitiveIdBug()
return
this
->
HaveApplePrimitiveIdBugValue
;
}
#ifdef
__APPLE__
#if
def
ined(
__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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment