Skip to content

Commit f3957b0

Browse files
BUG:IsDirect was not implemented in vtkCarbonRenderWindow.
1 parent 74c822a commit f3957b0

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Rendering/vtkCarbonRenderWindow.cxx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,12 @@ void vtkCarbonRenderWindow::SetForceMakeCurrent()
429429
this->ForceMakeCurrent = 1;
430430
}
431431

432+
// --------------------------------------------------------------------------
433+
int vtkCarbonRenderWindow::IsDirect()
434+
{
435+
return 1;
436+
}
437+
432438
// --------------------------------------------------------------------------
433439
void vtkCarbonRenderWindow::SetSize(int a[2])
434440
{

Rendering/vtkCarbonRenderWindow.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,11 @@ class VTK_RENDERING_EXPORT vtkCarbonRenderWindow : public vtkOpenGLRenderWindow
210210
// on the next render.
211211
void SetForceMakeCurrent();
212212

213+
// Description:
214+
// Is this render window using hardware acceleration? 0-false, 1-true.
215+
// Always true for Carbon.
216+
virtual int IsDirect();
217+
213218
// Description:
214219
// Check to see if an event is pending for this window.
215220
// This is a useful check to abort a long render.

0 commit comments

Comments
 (0)