Issues with garbled graphics when using DrawText

BlitzMax Forums/MaxGUI Module/Issues with garbled graphics when using DrawText

dooz(Posted 2011) [#1]
Hi,

I've just about finished an app however I have one strange seemingly bug that occurs on Mac, but not in Windows. When drawing text into a canvas this is what it looks like on Windows:



However on Mac, it progressively gets worse, with more blocks coming up instead of characters:



Any ideas?

Thanks


SLotman(Posted 2011) [#2]
There wasn't an opengl fix some releases ago about this? Some squares appearing instead of the font?

It was something about releasing the textures, even when they are still being used.

Are you using the latest bmax?
Maybe calling glShareContexts() before 'Graphics' could solve your problem?

Last edited 2011


dooz(Posted 2011) [#3]
Yes, using the latest bmax.

When you say before 'Graphics' what do you mean? Before drawing?

I am using canvases in MaxGUI code by the way.

Thx


shinkiro1(Posted 2011) [#4]
Just call it before you create the canvas (once).


dooz(Posted 2011) [#5]
Thanks, that seemed to work!