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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user