Skip to content

Commit 9953c6a

Browse files
authored
Merge pull request scp-fs2open#1616 from The-E/1615_fix
Do not try to delete opengl buffers when we have no idea what they are
2 parents 1db36b7 + b2652e0 commit 9953c6a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

code/graphics/opengl/gropengltnl.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ void gr_opengl_update_buffer_data_offset(int handle, size_t offset, size_t size,
293293

294294
void gr_opengl_delete_buffer(int handle)
295295
{
296+
if (GL_buffer_objects.size() == 0) return;
297+
296298
GR_DEBUG_SCOPE("Deleting buffer");
297299

298300
Assert(handle >= 0);

0 commit comments

Comments
 (0)