Details
-
Bug
-
Resolution: Done
-
P4: Low
-
4.8.5, 5.2.0
-
None
-
bbndk simluator 10.2.1.1155
win7 x64
Description
project setting.
QT += core gui opengl LIBS += -lGLESv1_CM -lfreetype -lpng
Code:
#include "widget.h" #include <QTimer> #include <QGLContext> #include <EGL/egl.h> #include <GLES/gl.h> #include <QDebug> Widget::Widget(QWidget *parent) : QGLWidget(parent) { } Widget::~Widget() { } void Widget::initializeGL() { } void Widget::paintGL() { glMatrixMode(GL_PROJECTION); glPushMatrix(); glLoadIdentity(); glOrthof( 0, 300,300,0,-1,1); << ---- this line throw error glClearColor(1.0f, 0.1f, 0.2f, 1.0f); glClear(GL_COLOR_BUFFER_BIT); }
qtcreator in debug mode crash lot's of time.