Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Documented why we have global and thread-local variables for the GL c…
Browse files Browse the repository at this point in the history
…ontext.
  • Loading branch information
slouken committed Aug 1, 2013
1 parent dc621d9 commit 1dcdf66
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/video/SDL_sysvideo.h
Expand Up @@ -301,6 +301,9 @@ struct SDL_VideoDevice

/* * * */
/* Cache current GL context; don't call the OS when it hasn't changed. */
/* We have the global pointers here so Cocoa continues to work the way
it always has, and the thread-local storage for the general case.
*/
SDL_Window *current_glwin;
SDL_GLContext current_glctx;
SDL_TLSID current_glwin_tls;
Expand Down

0 comments on commit 1dcdf66

Please sign in to comment.