From ee6485375ee106608943903fc05844c1855f83d4 Mon Sep 17 00:00:00 2001 From: justnope Date: Wed, 7 Oct 2020 17:03:26 +0200 Subject: [PATCH] Fix black screen for windows standalone --- test-libversion.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test-libversion.c b/test-libversion.c index 7cecc4f6..5a4b0e41 100644 --- a/test-libversion.c +++ b/test-libversion.c @@ -727,10 +727,15 @@ int main(int argc, char **argv) puglProcessEvents(view); monotonic_clock_gettime(&post_events); +#ifndef _WIN32 puglEnterContext(view); +#endif if(z.zest) needs_redraw = z.zest_tick(z.zest); +#ifndef _WIN32 puglLeaveContext(view, 0); +#endif + monotonic_clock_gettime(&post_tick); #define TIME_DIFF(a,b) (b.tv_sec-a.tv_sec + 1e-9 *(b.tv_nsec-a.tv_nsec))