Can we see the code?
Can we see the code?
Here is a very small example of code that crashes...
void OpenGLArea:aintGL()
{
renderText(0.0, 0.0, 0.0, "Test text");
}
void OpenGLArea::resizeGL(int width, int height)
{
glViewport(0, 0, width, height);
glOrtho(-2, 2, -2, 2, -100, 100);
}
Please in the future put your code into Code brackets so we get syntax highlighting.
I doubt this is causing your crash, but you need to load your matrices with the viewport and ortho. You need to be in the GL_PROJECTION matrix before calling glOrtho and you need to be in the GL_MODELVIEW matrix when you call glViewport. See if getting your matrices set up correctly helps solve the problem.
Bookmarks