SDL2 - Check if OpenGL context is created
问题 I am creating an application using SDL2 & OpenGL, and it worked fine on 3 different computers. But on another computer (an updated arch linux), it doesn't, and it crashes with this error: OpenGL context already created So my question is: How do I check if the OpenGL context has already been created? And then, if it is already created, how do I get a handle for it? If I can't do this, how do I bypass this issue? 回答1: SDL2 does not in fact create an OpenGL context without you asking to make one