gl: Check that fence is not empty before calling destroy

This commit is contained in:
kd-11
2017-09-21 16:24:42 +03:00
parent 2b0edf6cde
commit dfc564f837
+2 -1
View File
@@ -308,7 +308,8 @@ namespace gl
pbo_size = 0; pbo_size = 0;
} }
m_fence.destroy(); if (!m_fence.is_empty())
m_fence.destroy();
} }
texture::format get_format() const texture::format get_format() const