16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-23 01:39:19 +02:00

fix delete conditions of gl resources as they are initialized to -1

This commit is contained in:
milek7
2022-04-08 02:03:59 +02:00
parent 670af731bc
commit 32078ac8d8
3 changed files with 10 additions and 10 deletions

View File

@@ -18,7 +18,7 @@ public:
opengl_particles() = default;
// destructor
~opengl_particles() {
if( m_buffer != 0 ) {
if( m_buffer != -1 ) {
::glDeleteBuffers( 1, &m_buffer ); } }
// methods
void