1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

0024739: TKOpenGl - port ray-tracing from OpenCL to GLSL for better integration and portability

RayTracing - disable reflections by default
Fix possible compilation issue on Mac OS X.
This commit is contained in:
dbp
2014-04-04 14:14:02 +04:00
committed by apn
parent 54e37688ef
commit fc73a20256
39 changed files with 2399 additions and 2676 deletions

View File

@@ -13,10 +13,6 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <OpenGl_Group.hxx>
#include <OpenGl_GraphicDriver.hxx>
@@ -118,7 +114,6 @@ void OpenGl_Group::UpdateAspectFace (const Standard_Boolean theIsGlobal)
AddElement (anAspectFace);
}
#ifdef HAVE_OPENCL
if (myIsRaytracable)
{
++myModificationState;
@@ -128,7 +123,6 @@ void OpenGl_Group::UpdateAspectFace (const Standard_Boolean theIsGlobal)
aStruct->UpdateStateWithAncestorStructures();
}
}
#endif
}
// =======================================================================
@@ -300,7 +294,6 @@ void OpenGl_Group::AddElement (OpenGl_Element* theElem)
(myLast? myLast->next : myFirst) = aNode;
myLast = aNode;
#ifdef HAVE_OPENCL
if (OpenGl_Raytrace::IsRaytracedElement (aNode))
{
myModificationState++;
@@ -313,7 +306,6 @@ void OpenGl_Group::AddElement (OpenGl_Element* theElem)
aStruct->SetRaytracableWithAncestorStructures();
}
}
#endif
}
// =======================================================================