MACOS Mojave下SDL 1.2/2.0渲染OpenGL黑屏问题及解决建议
I recently ran into a super frustrating issue: after upgrading to macOS Mojave, my OpenGL projects using SDL 1.2 and 2.0 started showing a completely black SDL window. Everything worked perfectly fine before the system update, so I knew the problem was tied directly to the Mojave upgrade.
I spent ages scouring through forums and documentation looking for a fix with no luck—until I tried updating my system and Xcode to specific versions, which resolved the problem right away. Here's what worked for me:
- Update your macOS Mojave to 10.14.3
- Update Xcode to 10.1
After installing both updates and rebuilding my OpenGL/SDL projects, the black screen was gone, and the windows rendered correctly again. I’d definitely recommend giving this solution a shot if you’re stuck with the same issue.
内容的提问来源于stack exchange,提问作者Raydelto Hernandez

