Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QtOpenGL ES 2.0 and QGLPixelBuffer
Forum Updated to NodeBB v4.3 + New Features

QtOpenGL ES 2.0 and QGLPixelBuffer

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 1 Posters 3.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sleam
    wrote on last edited by
    #1

    I use this line in the constructor of a QGLWidget when compiling for maemo5:
    @pbuffer = new QGLPixelBuffer(QSize(1024, 1024), format(), this);@
    and that gives me this error:
    @QGLPixelBufferPrivate::init(): Unable to create EGL pbuffer surface: "Bad match (0x3009)" @
    This is not a problem when compiling for desktop target..
    What's the problem here ?

    Edit: I just found out that pbuffer's are not supported on the platform. I want to render into a QImage, is there any other solutions to this ?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sleam
      wrote on last edited by
      #2

      I solved it this way:
      @ QImage res = QImage(320, 320, QImage::Format_ARGB32);
      glReadPixels(0, 0, 320, 320, GL_RGBA, GL_UNSIGNED_BYTE, res.bits());
      // OpenGL gives ABGR (i.e. RGBA backwards); Qt wants ARGB
      res = res.rgbSwapped();@

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved