mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0023186: Unable to display Graphic3d_ArrayOfPoints after migrating from OCCT 6.5.2
GL_NONE replaced with PARRAY_DRAW_MODE_NONE to disambiguate with GL_POINTS DRAW_MODE_NONE constant moved into OpenGl_PrimitiveArray class to avoid potential name collisions
This commit is contained in:
@@ -34,6 +34,13 @@ class Handle(OpenGl_Context);
|
||||
class OpenGl_PrimitiveArray : public OpenGl_Element
|
||||
{
|
||||
public:
|
||||
// OpenGL does not provie a constant for "none" draw mode.
|
||||
// So we define our own one that does not conflict with GL constants
|
||||
// and untilizes common GL invalid value
|
||||
enum
|
||||
{
|
||||
DRAW_MODE_NONE = -1
|
||||
};
|
||||
|
||||
//! Default constructor
|
||||
OpenGl_PrimitiveArray (CALL_DEF_PARRAY* thePArray);
|
||||
@@ -91,7 +98,7 @@ private:
|
||||
protected:
|
||||
|
||||
mutable CALL_DEF_PARRAY* myPArray;
|
||||
GLenum myDrawMode;
|
||||
GLint myDrawMode;
|
||||
|
||||
public:
|
||||
|
||||
|
Reference in New Issue
Block a user