Fix crash in graphics benchmark

Set the GL context pointer deleted in the frame dtor to NULL to ensure we
don't crash on exit when not using OpenGL.
This commit is contained in:
Vadim Zeitlin
2015-12-06 17:31:24 +01:00
parent 7ddb522ec2
commit 530276ec6a

View File

@@ -103,6 +103,7 @@ public:
#if wxUSE_GLCANVAS
m_glCanvas = NULL;
m_glContext = NULL;
if ( opts.useGL )
{