Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files

Documented why we have global and thread-local variables for the GL c…

  • Loading branch information
slouken committed Aug 1, 2013
1 parent dc621d9 commit 1dcdf6651f07313586fc89bacedf7015ff1f3e29
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/video/SDL_sysvideo.h
@@ -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;

0 comments on commit 1dcdf66

Please sign in to comment.