This repository has been archived by the owner. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fixed bug 1946 - OpenGL contexts in threads
The SDL OpenGL context code is now properly thread aware. There are two new functions which return the current OpenGL window and context for the current thread. There are still places in the cocoa driver where the OpenGL context needs to be updated when the view changes. These will need a different solution and still use the last globally set context to avoid changing behavior.
- Loading branch information
Showing
with
57 additions
and 21 deletions.
- +10 −0 include/SDL_video.h
- +2 −1 src/video/SDL_sysvideo.h
- +40 −15 src/video/SDL_video.c
- +1 −1 src/video/cocoa/SDL_cocoaopengl.m
- +1 −1 src/video/windows/SDL_windowsopengl.c
- +3 −3 src/video/x11/SDL_x11opengl.c