Menu

#10 Segmentation Fault on starting the game up

open
nobody
None
5
2009-05-15
2009-05-15
Anonymous
No

There is a segmentation fault waiting to happen on line 97 of gl_wrap.cpp. The line reads
metrics.setWidth(i, static_cast<float> (fontInfo->per_char[p].rbearing - fontInfo->per_char[p].lbearing));
Which generates a segmentation fault SIGSEGV. The if/else block could be removed OR just change line 97 to match the other part of the code
metrics.setWidth(i, static_cast<float>(6));
This will never cause a segmentation fault. I am using linux FC10 on an AMD with 2gig ram and twinview display.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB