Removed static members from GLGizmoBase and GLGizmoBase::Grabber to fix OpenGL error when closing the application

This commit is contained in:
enricoturri1966 2021-05-25 11:09:39 +02:00 committed by Lukas Matena
parent 2e24e689fa
commit b63de990d4
4 changed files with 16 additions and 21 deletions

View file

@ -45,9 +45,8 @@ protected:
static const float SizeFactor;
static const float MinHalfSize;
static const float DraggingScaleFactor;
static GLModel VBOCube;
static GLModel VBOCone;
GLModel cube;
Vec3d center;
Vec3d angles;
std::array<float, 4> color;
@ -102,9 +101,9 @@ protected:
bool m_first_input_window_render;
mutable std::string m_tooltip;
CommonGizmosDataPool* m_c;
static GLModel VBOCone;
static GLModel VBOCylinder;
static GLModel VBOSphere;
GLModel m_cone;
GLModel m_cylinder;
GLModel m_sphere;
public:
GLGizmoBase(GLCanvas3D& parent,