In practise, if i initialize the GU and render the scene in the main() function, then it's all ok (i can see the text of intrafont).
But if i put the render code in another function, for example:
Code: Select all
while(1)
{
Platform_Graphic_StartDraw();
font->DisplayText(100,100,"Hello world!!");
Platform_Graphic_EndDraw();
}
The strange thing is that, meanly, the code is the same, just in a function.
I can't understand why it crashes!
PS:The "Font" is a class that when is created initialises intrafont.