Yomgui Projects BugTracker - Blender3D
Viewing Issue Advanced Details
31 [Blender3D] User Interface major always 2010-01-26 16:01 2010-02-04 10:16
Yomgui (all)  
Yomgui MorphOS  
normal 2.x  
resolved 2.50alpha0-test  
r85 fixed  
none    
none 2.50alpha0-test  
112
0000031: Bad display of text in UI
he text display is trashed in User preference window(black blocks displayed instead). See the attached image (it's an image from 2.46 but the bug is again in 2.50 also!)
has duplicate 0000032closed Yomgui broken diplay of any fonts 
has duplicate 0000028closed Yomgui No corekt display of text in splited windows 
child of 0000021closed Yomgui Bad display of text in UI 
Issue History
2010-02-04 10:17 Yomgui Relationship added has duplicate 0000028
2010-02-04 10:17 Yomgui Relationship deleted related to 0000028
2010-02-04 10:16 Yomgui SVN changeset revision => 112
2010-02-04 10:16 Yomgui Note Added: 0000066
2010-02-04 10:16 Yomgui Status assigned => resolved
2010-02-04 10:16 Yomgui Fixed in Version => 2.50alpha0-test
2010-02-04 10:16 Yomgui Resolution open => fixed
2010-02-03 09:32 Yomgui Note Added: 0000065
2010-01-28 23:41 Yomgui Relationship added related to 0000028
2010-01-28 23:41 Yomgui Relationship deleted has duplicate 0000028
2010-01-28 23:40 Yomgui Relationship added has duplicate 0000028
2010-01-28 15:47 Yomgui Relationship added has duplicate 0000032
2010-01-26 16:01 Yomgui New Issue
2010-01-26 16:01 Yomgui Status new => assigned
2010-01-26 16:01 Yomgui Assigned To => Yomgui
2010-01-26 16:01 Yomgui Issue generated from 0000021
2010-01-26 16:01 Yomgui Relationship added child of 0000021

Notes
(0000065)
Yomgui   
2010-02-03 09:32   
I found in the file source/blender/blenfont/intern/blf_glyph.c that we got some issues with drawing font textures in Alpha channel.
The texture is like cleaned between two system window!
(0000066)
Yomgui   
2010-02-04 10:16   
Fixed!
Was a pb of how TGL context are created: textures are not shared between two GLContext, but Blender uses multi-window now and GHOST was coded in a way that each new window creates a new GLContext. So not possible to share the same font texture between! Blender doesn't handle this.

So now only one GLContext is created during the system startup of GHOST, then Blender uses ActivateDrawingContext on a window each time he needs to draw inside. I use this moment to reinitialise the shared GLcontext on this window, using GLAReinitializeContextWindowed().

But there is a side effect to this: all previous buffers are destroyed, so when one window get the context, others ones loose theirs back-buffers causing black area displayed when they obtain the context again. Obsiously this happens only with overlay refresh modes, not full. Solution for that should be found lated (need to open a bugtrack also).