OpenGL Segfaults on glGenVertexArrays

前端 未结 1 359
小蘑菇
小蘑菇 2021-01-23 12:38

OpenGL or SDL segfaults when it reaches the very first statement in the class. I have no idea what is causing it.

class RenderEngine {
    GLuint vertexArrayId;         


        
相关标签:
1条回答
  • 2021-01-23 13:26

    I forgot to setup an OpenGL context. All fixed now.

    0 讨论(0)
提交回复
热议问题