Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-36376

BlackBerry 10 GLES 1.1 QGLWidget glOrthof throw error SIGSEGV segmentation fault

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.3.0
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bomb3rman Fabian Bumberger
            hsutuo hsutuo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes