Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#3 On OSX, Pixmap glyphs fail with GL_LINE

closed-fixed
Sam Hocevar
None
5
2010-05-23
2008-07-18
Duncan Murdoch
No

In 2.1.2 and 2.1.3rc5 in Mac OSX 10.4 and 10.5, if I have the GL_FRONT polygonmode set to GL_LINE when I draw pixmap text, the text does not appear properly, only something sort of like bounding boxes for the glyph.

I can work around this by

glPushAttrib(GL_POLYGON_BIT);
glPolygonMode(GL_FRONT, GL_FILL);

before trying to draw anything.

I don't see this problem in Windows or in RHE Linux.

I don't have a simple demo code for this; it came out of a big project (the rgl package for R). I have attached a PDF containing a couple of screen grabs, the first without the fix above, and the second with it.

If you have a simple wrapper for demo test code I'd be happy to try it out.

Discussion

  • Duncan Murdoch
    Duncan Murdoch
    2008-07-18

    screen shots before and after workaround

     
    Attachments
  • Sam Hocevar
    Sam Hocevar
    2010-05-23

    • assigned_to: nobody --> sammy
     
  • Sam Hocevar
    Sam Hocevar
    2010-05-23

    It makes sense to set this attribute on every platform, in case the caller program has a problematic context.

    Thanks for reporting this. Fix is in trunk.

     
  • Sam Hocevar
    Sam Hocevar
    2010-05-23

    • status: open --> closed-fixed