[Development] Blacklines only in OpenGL in a QGLView

James Turner james.turner at kdab.com
Thu Aug 22 12:52:46 CEST 2013


On 21 Aug 2013, at 13:11, niallcwhelan at eircom.net wrote:

> Regardless of values is glColor3f, black is the only line colour drawn.
> 
> Suggestions gratefully received.

Do you have lighting enabled? If so you probably want to disable it while drawing the lines, and then re-enable it. Or you can lookup glColorMaterial.

Other possibilities (less likely) are a strange blending mode, but I'd start with the lighting.

Regards,
James

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130822/1f64610f/attachment.html>


More information about the Development mailing list