|
(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). |
|