From cd4b28b4d79a39a569187d63a1654232b7ee7533 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Sat, 9 Sep 2017 16:14:19 +0200 Subject: [PATCH] Qt / OpenGL: fix delete_context --- rpcs3/rpcs3qt/gl_gs_frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/rpcs3qt/gl_gs_frame.cpp b/rpcs3/rpcs3qt/gl_gs_frame.cpp index db4302e627..f3ec3c58e1 100644 --- a/rpcs3/rpcs3qt/gl_gs_frame.cpp +++ b/rpcs3/rpcs3qt/gl_gs_frame.cpp @@ -42,7 +42,7 @@ void gl_gs_frame::set_current(draw_context_t ctx) void gl_gs_frame::delete_context(void* ctx) { - delete (QOpenGLContext*)ctx; + ((QOpenGLContext*)ctx)->deleteLater(); } void gl_gs_frame::flip(draw_context_t context, bool skip_frame)