DiscussionsIssue archiveOther usage issues

Archived discussion

AIS_LengthDimension text displays as solid yellow rectangle

Other usage issuesThu, 10/26/2006 - 02:422 replies

Browse this forum
QuestionAuthor

I have a custom shape class derived from AIS_Shape that allows me to assign either a color or texture to each face. If all faces are colored (not texture mapped) my length dimensions display correctly. However, the moment I apply a texture map to any face the text of the length dimensions displays as a solid yellow rectangle instead of readable text. Has anyone experienced this problem?

Thanks for any help,

Chris

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

hi Chris,

I am facing the same problem refer

http://www.opencascade.org/org/forum/thread_10355/

May be it is a bug in opencascade6.1. if you get any solution then please share.

Regards,
Commenter-1

02Author

I was able to fix the problem by commenting out lines 526 & 527 in OpenGl_TextureBox.c:
526:
if ((current_texture_data!=textab[ID].data)||
527:
(current_context!=Context))

This forces the texture to always bind.