From ddfcee0fd3e6daf7174497c6a7183d83651a5c88 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 1 Sep 2016 22:23:47 -0400 Subject: Expose puglEnterContext() and puglLeaveContext() This allows code in the main thread to set up the GL context outside the scope of a draw callback, which is useful for porting existing code that assumes the GL context can be entered anywhere. --- pugl/pugl_internal.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'pugl/pugl_internal.h') diff --git a/pugl/pugl_internal.h b/pugl/pugl_internal.h index 9566c6f..d9dfdfa 100644 --- a/pugl/pugl_internal.h +++ b/pugl/pugl_internal.h @@ -253,12 +253,6 @@ puglSetSpecialFunc(PuglView* view, PuglSpecialFunc specialFunc) view->specialFunc = specialFunc; } -void -puglEnterContext(PuglView* view); - -void -puglLeaveContext(PuglView* view, bool flush); - /** Return the code point for buf, or the replacement character on error. */ static uint32_t puglDecodeUTF8(const uint8_t* buf) -- cgit v1.2.3