Skip to content

Commit b2652e0

Browse files
committed
While working through the atexit table, this function somehow got called, leading to the debug_filter.cfg being altered, as explained in scp-fs2open#1615
1 parent 0178374 commit b2652e0

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)