Skip to content

Commit

Permalink
Some minor cleanups for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Martin committed Aug 4, 2015
1 parent 4eac6a2 commit 724a7a7
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 35 deletions.
2 changes: 1 addition & 1 deletion CMake/vtkBackends.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if (${_index} EQUAL -1)
# has the application defined a desired default for the backend?
# if not, use VTKs default of OpenGL
if(NOT DEFINED VTK_RENDERING_BACKEND_DEFAULT)
set(VTK_RENDERING_BACKEND_DEFAULT "OpenGL")
set(VTK_RENDERING_BACKEND_DEFAULT "OpenGL2")
endif()

# if it is in the cache as a bad value we need to reset it
Expand Down
2 changes: 1 addition & 1 deletion Rendering/Core/vtkRenderWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ class VTKRENDERINGCORE_EXPORT vtkRenderWindow : public vtkWindow
// Description:
// Get the vtkPainterDeviceAdapter which can be used to paint on
// this render window.
vtkGetObjectMacro(PainterDeviceAdapter, vtkPainterDeviceAdapter);
VTK_LEGACY(vtkGetObjectMacro(PainterDeviceAdapter, vtkPainterDeviceAdapter));

// Description:
// Set / Get the number of multisamples to use for hardware antialiasing.
Expand Down
1 change: 0 additions & 1 deletion Rendering/Core/vtkRenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ class vtkCamera;
class vtkLightCollection;
class vtkCullerCollection;
class vtkLight;
class vtkPainter;
class vtkHardwareSelector;
class vtkRendererDelegate;
class vtkTexture;
Expand Down
25 changes: 0 additions & 25 deletions Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -313,31 +313,6 @@ void vtkOpenGLRenderWindow::StereoUpdate(void)
}
}

#ifndef VTK_LEGACY_REMOVE
//----------------------------------------------------------------------------
void vtkOpenGLRenderWindow::CheckGraphicError()
{
VTK_LEGACY_BODY(vtkRenderWindow::CheckGraphicError, "VTK 6.1");
this->LastGraphicError=static_cast<unsigned int>(glGetError());
}

//----------------------------------------------------------------------------
int vtkOpenGLRenderWindow::HasGraphicError()
{
VTK_LEGACY_BODY(vtkRenderWindow::HasGraphics, "VTK 6.1");
return static_cast<GLenum>(this->LastGraphicError)!=GL_NO_ERROR;
}

//----------------------------------------------------------------------------
const char *vtkOpenGLRenderWindow::GetLastGraphicErrorString()
{
VTK_LEGACY_BODY(vtkRenderWindow::GetLastGraphicErrorString, "VTK 6.1");
const char *result="Unknown error";
return result;
}
#endif


void vtkOpenGLRenderWindow::OpenGLInit()
{
OpenGLInitContext();
Expand Down
7 changes: 0 additions & 7 deletions Rendering/OpenGL2/vtkOpenGLRenderWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,6 @@ class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLRenderWindow : public vtkRenderWindow
// It is used by vtkOpenGLCamera.
unsigned int GetFrontBuffer();

// Description:
// @deprecated Replaced by
// vtkOpenGLCheckErrorMacro
VTK_LEGACY(virtual void CheckGraphicError());
VTK_LEGACY(virtual int HasGraphicError());
VTK_LEGACY(virtual const char *GetLastGraphicErrorString());

// Description:
// Get the time when the OpenGL context was created.
virtual unsigned long GetContextCreationTime();
Expand Down

0 comments on commit 724a7a7

Please sign in to comment.