Documented why we have global and thread-local variables for the GL context.
authorSam Lantinga <slouken@libsdl.org>
Wed, 31 Jul 2013 21:22:09 -0700
changeset 75580614504d2265
parent 7557 609bd82bdcf6
child 7559 0dd3b05797f9
Documented why we have global and thread-local variables for the GL context.
src/video/SDL_sysvideo.h
     1.1 --- a/src/video/SDL_sysvideo.h	Wed Jul 31 21:08:22 2013 -0700
     1.2 +++ b/src/video/SDL_sysvideo.h	Wed Jul 31 21:22:09 2013 -0700
     1.3 @@ -301,6 +301,9 @@
     1.4  
     1.5      /* * * */
     1.6      /* Cache current GL context; don't call the OS when it hasn't changed. */
     1.7 +    /* We have the global pointers here so Cocoa continues to work the way
     1.8 +       it always has, and the thread-local storage for the general case.
     1.9 +     */
    1.10      SDL_Window *current_glwin;
    1.11      SDL_GLContext current_glctx;
    1.12      SDL_TLSID current_glwin_tls;