Problem with rendering a quad in LWJGL 3 using VAOs and VBOs

前端 未结 1 1952
后悔当初
后悔当初 2021-01-22 19:05

(This is the second time I am asking this question. Last time I got one answer that didn\'t solve it (the answer there referred a bit of code that was left accidentally from one

相关标签:
1条回答
  • 2021-01-22 19:29

    Since you are on MacOS, I recommend to set up a 3.2 core profile OpenGL Context. See OpenGL Development on OS X:

    glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
    glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2);
    glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, true);
    glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
    
    // Create the window
    window = glfwCreateWindow(width, height, "Flappy Bird", NULL, NULL);
    
    0 讨论(0)
提交回复
热议问题