Skip to content

Commit

Permalink
[TASK] check lists existence with GL (2) (dev)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaseberle committed Jun 29, 2023
1 parent f05022a commit 37efffb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
10 changes: 4 additions & 6 deletions src/Sector.cpp
Expand Up @@ -4,8 +4,6 @@
#include "Settings.h"
#include "Tessellator.h"

Sector::Sector() {}

Sector::Sector(const QStringList &fields, const int debugControllerLineNumber, const int debugSectorLineNumber)
: _debugControllerLineNumber(debugControllerLineNumber),
_debugSectorLineNumber(debugSectorLineNumber),
Expand All @@ -26,16 +24,16 @@ Sector::Sector(const QStringList &fields, const int debugControllerLineNumber, c
}

Sector::~Sector() {
if (_polygon != 0) {
if (glIsList(_polygon) == GL_TRUE) {
glDeleteLists(_polygon, 1);
}
if (_borderline != 0) {
if (glIsList(_borderline) == GL_TRUE) {
glDeleteLists(_borderline, 1);
}
if (_polygonHighlighted != 0) {
if (glIsList(_polygonHighlighted) == GL_TRUE) {
glDeleteLists(_polygonHighlighted, 1);
}
if (_borderlineHighlighted != 0) {
if (glIsList(_borderlineHighlighted) == GL_TRUE) {
glDeleteLists(_borderlineHighlighted, 1);
}
}
Expand Down
1 change: 0 additions & 1 deletion src/Sector.h
Expand Up @@ -6,7 +6,6 @@

class Sector {
public:
Sector();
Sector(const QStringList &fields, const int debugControllerLineNumber, const int debugSectorLineNumber = -1);
~Sector();

Expand Down

0 comments on commit 37efffb

Please sign in to comment.