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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user