#12 Support of OpenGL 4 / GLX_ARB_create_context

VirtualGL (13)

Hello! (Sorry for my english I'm french)

So, I use Bumblebee (https://github.com/MrMEEE/bumblebee) for use Nvidia graphics card with Optimus technology because it is the only way to do it.

And Bumblebee use VirtualGL. But it's impossible to run an OpenGL 4 program because GLX implementation (that of VirtualGL in this case) doesn't expose GLX_ARB_create_context.

Have you planned something for this?


Victor Hiairrassary


  • DRC

    DRC - 2011-08-04

    Wasn't aware of it before now, but I'll look into it.

  • Victor Hiairrassary

    I know it is an important feature!

    But if the extension is implemented, it will be possible to use new technologies with OpenGL 4 with newest Nvidia card on many many laptops. You probably know Bumblebee project.

    Thank you for your interest so fast and for VirtualGL too!

  • Lekensteyn

    Lekensteyn - 2011-08-13

    @dcommander: How did you get your build compiled? I couldn't get it compiled on Kubuntu 11.04. `glxinfo` does not show the method create_context. Version output:

    GLX version: 1.4
    OpenGL version string: 2.1 Mesa 7.10.2

    $ cmake -G "Unix Makefiles" -DTJPEG_LIBRARY=/usr/lib/libturbojpeg.a
    # make
    Linking CXX executable ../bin/rrfakerut
    CMakeFiles/rrfakerut.dir/rrfakerut.cpp.o: In function `queryctxtest(_XDisplay*, XVisualInfo*, __GLXFBConfigRec*)':
    rrfakerut.cpp:(.text+0xfe5a): undefined reference to `glXCreateContextAttribsARB'
    collect2: ld returned 1 exit status

    Trying to compile it against the nvidia libraries and header is a bigger disaster:
    /usr/bin/ld: warning: libnvidia-tls.so.280.13, needed by /usr/lib/nvidia-current//libGL.so, not found (try using -rpath or -rpath-link)
    /usr/bin/ld: warning: libnvidia-glcore.so.280.13, needed by /usr/lib/nvidia-current//libGL.so, not found (try using -rpath or -rpath-link)
    /usr/lib/nvidia-current//libGL.so: undefined reference to `_nv021glcore'
    /usr/lib/nvidia-current//libGL.so: undefined reference to `_nv018tls'
    /usr/lib/nvidia-current//libGL.so: undefined reference to `_nv012glcore'

    I don't have experience with GL, but does the code fallback to the older context creation method as described by http://www.opengl.org/wiki/Tutorial:_OpenGL_3.0_Context_Creation_%28GLX%29 ?

  • DRC

    DRC - 2011-08-14

    I guess rrfakerut needs to dynamically load that symbol, since it doesn't seem to be generally available. In the meantime, I've gone to the trouble of supplying binaries for you to test. See link below.

  • Victor Hiairrassary

    It's really perfect. I'll try now and I tell you!


  • Victor Hiairrassary

    Oh my god it's fantastic =)

    With the pre release I have successfully created an OpenGL 4.1 context!!
    Tomorrow I'll try with a bigger program but it's magic.

    Thank you very much!!

  • DRC

    DRC - 2011-08-15

    2.3 beta1 (just released) should fix the build issue you were having.

  • DRC

    DRC - 2011-08-15
    • status: open --> closed-fixed
  • DRC

    DRC - 2011-12-17
    • assigned_to: nobody --> dcommander
  • DRC

    DRC - 2011-12-17
    • labels: --> VirtualGL
  • DRC

    DRC - 2014-08-05
    • Status: closed-fixed --> closed-implemented

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks