testsuite: clear_current() when done

That way we ensure that the GL context(s) get disposed, which they
previously weren't due to them still being the current context.

This also implicitly adds testing of gLContext destruction, which
previously wasn't ever done by any test.
This commit is contained in:
Benjamin Otte 2022-01-06 19:08:42 +01:00
parent fcdd5173bd
commit 7872b41f16
2 changed files with 2 additions and 0 deletions

View File

@ -649,6 +649,7 @@ main (int argc, char *argv[])
gsk_renderer_unrealize (gl_renderer);
g_clear_object (&gl_renderer);
}
gdk_gl_context_clear_current ();
return result;
}

View File

@ -108,6 +108,7 @@ texture_threads (void)
g_clear_pointer (&loop, g_main_loop_unref);
g_clear_object (&gl_renderer);
g_main_context_release (NULL);
gdk_gl_context_clear_current ();
}
int