View Single Post
Old 01-31-05, 02:04 PM   #2
Registered User
Join Date: May 2004
Posts: 3
Default Re: PBuffers and GLX Support

GLX_FLOAT_COMPONENTS_NV is a token defined by the GLX_NV_float_buffer extension. To access this token you need to include <GL/glxext.h> or better yet goto the OpenGL registry at SGI's website and get the latest revision of the file.

The reason glXGetCurrentDisplay() is returning NULL is because the pbuffer.cpp class is designed so that pbuffer creation can be shared with the current rendering context or it can be separate in it's own context. However you are trying to create a shared pbuffer without creating a regular rendering context to begin with! So modify your code so that it either creates another rendering context first, or creates the pbuffer in it's own context.
DeepThawt is offline   Reply With Quote