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 7558 0614504d2265
parent 7557 609bd82bdcf6
child 7559 0dd3b05797f9
Documented why we have global and thread-local variables for the GL context.
src/video/SDL_sysvideo.h
--- a/src/video/SDL_sysvideo.h	Wed Jul 31 21:08:22 2013 -0700
+++ b/src/video/SDL_sysvideo.h	Wed Jul 31 21:22:09 2013 -0700
@@ -301,6 +301,9 @@
 
     /* * * */
     /* 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;