PDA

View Full Version : Failed to create fragment programs.



jeeman
14th June 2007, 22:21
Hi all,

"QOpenGLPaintEngine: Failed to create fragment programs."

When doing OpenGL in my application, I get this error/warning. The dialog seems to render correctly still, but can anyone provide any insight as to why this is happening?

Thanks,
Jee

high_flyer
14th June 2007, 23:18
yes, it means your openGL code is trying to run a fragment shader, but fails to run the shader program.

wysota
14th June 2007, 23:38
Qt probably tried to use some optimized code but failed to do that because of the lack of support in your hardware. This is probably only a warning.

jeeman
18th June 2007, 22:37
please disregard

jeeman
18th June 2007, 22:38
Qt probably tried to use some optimized code but failed to do that because of the lack of support in your hardware. This is probably only a warning.

Ok, here's some more info:

I have a class derived from QGLWidget, and I am creating a QPainter in its paintEvent() function. Most of the time this works, but every so often, I get the Failed warning. This occurs when I create the QPainter object with "this" (the QGLWidget's child class) as the paramter. Does this ring a bell with anyone?

BTW, my hardware is about a year old, and should support Fragment Programs.

Jeeman

wysota
19th June 2007, 01:03
Try the Qt 4.3 demo. See if you get similar messages.