]> git.cworth.org Git - apitrace/blobdiff - common/trace_file.cpp
Recognize IDirect3DSwapChain9::Present as end of frame
[apitrace] / common / trace_file.cpp
index 22106026327f1e1e5572cf06585fcd9ebfad36c1..3657fd2943088012fa4c69abc790bb753a151f8e 100644 (file)
@@ -28,6 +28,7 @@
 
 #include <assert.h>
 
+
 using namespace trace;
 
 
@@ -43,7 +44,8 @@ File::File(const std::string &filename,
 
 File::~File()
 {
-    close();
+    // We can't invoke any overriden virtual method here anymore
+    assert(!m_isOpened);
 }