esdl2 icon indicating copy to clipboard operation
esdl2 copied to clipboard

SDL2 resource destructors segfaults fix

Open brainstormi opened this issue 10 years ago • 1 comments

Fix for random segfaults in SDL destructors. Discussed in issue #2. SDL_DestroyXXXX and SDL_FreeSurface should be called from the main thread due to the lack of multithreading support in SDL2. Probably not the cleanest or more elegant implementation to merge, but in the worst case, useful as proof of concept solving these segfaults.

brainstormi avatar Dec 22 '15 20:12 brainstormi

Thanks. Sounds good. Will merge when I can. :-)

essen avatar Dec 22 '15 21:12 essen