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

QGLContext::drawTexture() doesn't work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • 4.7.0
    • 4.6.1
    • GUI: OpenGL
    • None
    • OS: Ubuntu 9.10
      QT: 4.6.1

    Description

      it seems QGLContext::drawTexture() doesn't work. I try to test the corressponding functions in QGLPixelBuffer and QGLWidget which invoke QGLContext::drawTexture() directly and they couldn't draw texture on the target device.

      Please refer to the file rendertextglwidget.cpp in attached package:
      120 drawTexture(QPointF(30.0f, 50.0f),cubeTuxture);
      121 drawTexture(QRectF(200, 200, 64, 64), cubeTuxture);

      Please refer to the attachment to see the actual result and we could see that two black rectangles instead of two textures.

      How to run test:
      ./tst_qglwidget renderText

      Attachments

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

        Activity

          People

            kjernase Trond Kjernåsen (Inactive)
            hannnbin Hans Han (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes