1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

Fix compilation problem on Linux

This commit is contained in:
abv
2014-04-08 16:36:05 +04:00
parent 2bbf4c9f0f
commit 85146fa841

View File

@@ -16,7 +16,7 @@
#include <OpenGl_GraphicDriver.hxx> #include <OpenGl_GraphicDriver.hxx>
#include <TCollection_AsciiString.hxx> #include <TCollection_AsciiString.hxx>
Handle(V3d_Viewer) DocumentCommon::Viewer( const Standard_CString /*aDisplay*/, Handle(V3d_Viewer) DocumentCommon::Viewer( const Standard_CString aDisplay,
const Standard_ExtString aName, const Standard_ExtString aName,
const Standard_CString aDomain, const Standard_CString aDomain,
const Standard_Real ViewSize, const Standard_Real ViewSize,
@@ -31,6 +31,8 @@ Handle(V3d_Viewer) DocumentCommon::Viewer( const Standard_CString /*aDisplay*/,
Handle(Aspect_DisplayConnection) aDisplayConnection; Handle(Aspect_DisplayConnection) aDisplayConnection;
#if !defined(_WIN32) && !defined(__WIN32__) && (!defined(__APPLE__) || defined(MACOSX_USE_GLX)) #if !defined(_WIN32) && !defined(__WIN32__) && (!defined(__APPLE__) || defined(MACOSX_USE_GLX))
aDisplayConnection = new Aspect_DisplayConnection (aDisplay); aDisplayConnection = new Aspect_DisplayConnection (aDisplay);
#else
(void)aDisplay; // avoid compiler warning on unused argument
#endif #endif
aGraphicDriver = new OpenGl_GraphicDriver (aDisplayConnection); aGraphicDriver = new OpenGl_GraphicDriver (aDisplayConnection);
} }