Clean up OpenGL command processor

This commit is contained in:
def 2020-09-30 23:51:33 +02:00
parent 12f150393b
commit 406d383c45
2 changed files with 7 additions and 0 deletions

View file

@ -4019,6 +4019,11 @@ CCommandProcessor_SDL_OpenGL::CCommandProcessor_SDL_OpenGL(int OpenGLMajor, int
}
}
CCommandProcessor_SDL_OpenGL::~CCommandProcessor_SDL_OpenGL()
{
delete m_pOpenGL;
}
// ------------ CGraphicsBackend_SDL_OpenGL
static void GetGlewVersion(int &GlewMajor, int &GlewMinor, int &GlewPatch)

View file

@ -211,6 +211,7 @@ protected:
public:
CCommandProcessorFragment_OpenGL();
virtual ~CCommandProcessorFragment_OpenGL() = default;
bool RunCommand(const CCommandBuffer::SCommand *pBaseCommand);
};
@ -468,6 +469,7 @@ class CCommandProcessor_SDL_OpenGL : public CGraphicsBackend_Threaded::ICommandP
public:
CCommandProcessor_SDL_OpenGL(int OpenGLMajor, int OpenGLMinor, int OpenGLPatch);
virtual ~CCommandProcessor_SDL_OpenGL();
virtual void RunBuffer(CCommandBuffer *pBuffer);
};