[Qt-interest] paintGL and qDebug()
Sajjad
dosto.walla at gmail.com
Sun Sep 12 16:20:32 CEST 2010
Hello forum,
I am having a strage behavior using the QGLWidget . In the paintGL() i have
the following code snippet:
****************************************************************************************************
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
M3DMatrix33f transformationMatrix;
qDebug() << "So far fine here";
//build the rotation matrix
m3dRotationMatrix44(transformationMatrix,m3dDegToRad(yRot),0.0f,1.0f,0.0f);
transformationMatrix[12] = 0.0f;
transformationMatrix[13] = 0.0f;
transformationMatrix[14] = -2.5f;
drawTorus(transformationMatrix);
****************************************************************************************************
It runs fine and show the torus in the wired frame mode. But it crashes if i
comment the above qDebug() line.
Any idea why it is happening?
Regards
Sajjad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100912/5a5fa89a/attachment.html
More information about the Qt-interest-old
mailing list