I have encountered a text rendering issue in my program. The situation is, I am providing user a multiple windows that could be opened and closed on demand. Everything works just fine with my current code, except the text printing.
The very first time, if user opens a gl window, the text could be print correctly and if they do not close any window, the font is all-the-way correct. It, however, turns into blocks of solid color if user close one window and open another. Then everything it prints are just blocks of blocks of solid color.
I just use the uncached textprinter functions.
Thanks so much,
//These are in the same class.
internal TextureFont font = new TextureFont(new Font(FontFamily.GenericSerif, 12.0f));
internal TextPrinter printer = new TextPrinter();
internal void DrawAt(float x, float y, string text)
GL.Translate(x, y, 0.0);