Skip to content

Commit

Permalink
Fix black screen for windows standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
justnope authored and fundamental committed Oct 8, 2020
1 parent 706b639 commit ee64853
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test-libversion.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit ee64853

Please sign in to comment.