Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, March 2008
Cannot create QGLPixelBuffer


Message 1 in thread

Hi all,

I'm trying to use QGLPixelBuffer but I do not manage to create one.

I have an application with a QGLwidget where I'm drawing and this works
fine.

If I create a QGLPixelBuffer somewhere (constructor, paintEvent,
resizeEvent...)
GLPixelBuffer = new QGLPixelBuffer(256,256,format(),this);

I always get this error :
QGLPixelBuffer: Unable to find a pixel format with pbuffer  - giving up.


Any idea on how to solve this?

Thanks!

Etienne

Message 2 in thread

Hi Etienne,

Did you manage to create your pbuffer?

Have you tried to use QGLFormat::defaultFormat() instead?

Does the Pbuffers example works on your computer?

  Xavier

On Wed, Mar 5, 2008 at 11:11 AM, Etienne Sandré <
etienne.sandre@xxxxxxxxxxxxxxxxx> wrote:

> Hi all,
>
> I'm trying to use QGLPixelBuffer but I do not manage to create one.
>
> I have an application with a QGLwidget where I'm drawing and this works
> fine.
>
> If I create a QGLPixelBuffer somewhere (constructor, paintEvent,
> resizeEvent...)
> GLPixelBuffer = new QGLPixelBuffer(256,256,format(),this);
>
> I always get this error :
> QGLPixelBuffer: Unable to find a pixel format with pbuffer  - giving up.
>
>
> Any idea on how to solve this?
>
> Thanks!
>
> Etienne
>



-- 
 [ signature omitted ] 

Message 3 in thread

Hi Xavier,

In fact the pbuffers are not supported by my implementation, thanks!
I was wrong assuming it was on every recent computer but likely not on every
laptop (centrino duo / intel graphics)

Etienne