Here's a bit of a conversation from mac-ogl list that brings me a bit closer to figuring out why OSG crashes on Intel Macs 10.4.7 when loadinf ttf fonts.

Any advice ?

On 26-Jul-06, at 5:51 PM, Keith Bauer wrote:
I posted this radar report about a crash of OpenSceneGraph on MacBook 
Pro (10.4.7) that seems to be related to the freetype plugin, but 
that affects (hard-freeze) the OpenGL system.

There is an issue affecting ATI Radeon X1600s / Intel Macs and glTexSubImage2D
on 10.4.7.  In particular, this shows up when using FTGL's texture fonts, which,
IIRC, OSG does.

The work-around is to not use FTGL's texture fonts :)

A friend of mine found that using a polygon font together with an outline font
(with line antialiasing enabled) gave acceptable results for until the bug is fixed.

-Keith

Hi Keith,

Thanks for the reply.

It seems like there's a bit of confusion about FTGL, I just mentioned it because I used it to load some ttf fonts and it worked. 
I just tested the demo, so probably it doesn't use textured fonts, so no crash there. (we'll ignore it from now on :)

My beef is with OSG, which has it's own implementation, linked directly with freetype2.

Looking for glTexSubImage2D in OSG, I found it in a couple of places, Textue.cpp; TextureRectangle.cpp and more importantly in Font.cpp(line 606) , in Font::GlyphTexture::apply. 

Looks like there's some progress here, meaning it doesn't look like it's freetype2-related, but I'd like to know how to fix or work around it.


--------------------------
Radu Mihai



_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to