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 3 of 3

Thread: GL_RENDER returns null

  1. #1
    Intern Contributor
    Join Date
    Nov 2011
    Posts
    52

    GL_RENDER returns null

    Hi everyone, I' creating a simple project using opengl with glut. I use Xcode 4 on Lion OS.

    I try to print GL_RENDER but I get "null". What exaclty it means? It's a bad thing?
    this is the code line:

    printf("renderer OpenGL: %s\n", glGetString(GL_RENDER));


    I put the code line after created gl context

  2. #2
    Intern Contributor
    Join Date
    Nov 2011
    Posts
    52

    Re: GL_RENDER returns null

    sorry stupid error.

    I should write "GL_RENDERER" instead of "GL_RENDER"

  3. #3
    Junior Member Regular Contributor
    Join Date
    Dec 2009
    Posts
    210

    Re: GL_RENDER returns null

    Usually that means that no GL context is current on the calling thread.

Posting Permissions

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