Qt-interest Archive, July 2007
Re: QOpenGLPaintEngine: Failed to create fragment programs.-SOLVED
Message 1 in thread
>I've just upgraded my system from 4.2 to 4.3, running FC5. A
>program that has been working perfectly until now emits the
>following message:
>QOpenGLPaintEngine: Failed to create fragment programs.
>multiple times. The program still works as before, but emits
>these irritating (and totally meaningless) messages.
>The program has a central QGLWidget and a satellite QGLWidget
>which shows the results of operations on the central widget.
>The message is only emitted when the second widget is
>present - it disappears if I remove all the 'rendertext' statements
>in the second widget.
Looking through Qt assistant I realised the constructor for
QGLWidget contains the option:
const *QGLWidget sharewidget = 0
and the description:
"If the shareWidget parameter points to a valid QGLWidget,
this widget will share OpenGL display lists with shareWidget."
Since rendertext requires a font that in turn uses display lists, I
thought that it might be the problem.
I checked and found (using isSharing()) that sharing the display
lists is not the default (was it before?) Changing the constructors
so that the display lists are shared, solved the problem and the
message disappeared.
I'm not sure why there was an error message - since it worked, it
clearly was able to create more than one display list, it seemed not
to like there being separate display lists.
May I suggest that this is a 'bug', and should be fixed?
DS
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail at http://mrd.mail.yahoo.com/try_beta?.intl=ca
--
[ signature omitted ]