Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Open GL tutorial - triangle not showing on OSX

  1. #1
    Newbie Newbie
    Join Date
    Jul 2017
    Posts
    1

    Open GL tutorial - triangle not showing on OSX

    I'm following this tutorial http://www.opengl-tutorial.org/begin...irst-triangle/, compiled the code, and saw a window appear but with no triangle. I ended up pulling the code from here https://github.com/opengl-tutorials/...2_red_triangle. I see a window with a dark background, but don't see a triangle.

    I'm on OSX 10.12.5 and glfw3. What could be causing this problem?

  2. #2
    Member Regular Contributor
    Join Date
    Jul 2012
    Posts
    429
    Any errors reported by OpenGL (glGetError) ? Or reported by the compilation/linking of the shaders ?

    What hardware do you have ? What version of OpenGL are you using ?

    Finally, from what I know, depending on your OSX version, supported OpenGL version might differ and can stuck to some specific version only. Read this for example. If that does not match your version, investigate further (maybe someone else here will give more targeted clues/solutions).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •