remove warning supression and fix missing virtual destructor

This commit is contained in:
AdenKoperczak 2024-09-21 13:01:56 -04:00
parent c5d004aa48
commit 3b5323cea0
5 changed files with 2 additions and 29 deletions

View file

@ -22,7 +22,7 @@ class DrawItem
{
public:
explicit DrawItem(OpenGLFunctions& gl);
~DrawItem();
virtual ~DrawItem();
DrawItem(const DrawItem&) = delete;
DrawItem& operator=(const DrawItem&) = delete;

View file

@ -1,16 +1,7 @@
#pragma once
#if defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wdelete-non-abstract-non-virtual-dtor"
#endif
#include <QOpenGLFunctions_3_3_Core>
#if defined(__clang__)
# pragma clang diagnostic pop
#endif
#define SCWX_GL_CHECK_ERROR() \
{ \
GLenum err; \