Results 1 to 2 of 2

Thread: For all QtOpenCL users...

  1. #1
    Junior Member
    Join Date
    Feb 2011
    Posts
    5

    For all QtOpenCL users...

    Hi !

    I'm using the OpenCL's Qt "wrapper" and i'm actually experiencing problems with the interoperability between OpenGL and OpenCL since the GL context is only available for specific functions like initializeGL(), paintGL() & resizeGL().
    When i try to create an OpenCL memory object from a GL texture (clCreateFromGLTexture2D) in the initializeGL() function (which must have a valid QGLContext since i test my QApplication with QGLFormat::hasOpenGL()), i get this :
    Code :
    create: do not know how to enable sharing
    QCLContextGL::createGLTexture2D: "CL_INVALID_CONTEXT"

    Help me plz !

  2. #2
    Junior Member
    Join Date
    Feb 2011
    Posts
    5

    Re: For all QtOpenCL users...

    Update : Apparently, i can't set the properties in order to pass the Render Context (of OpenGL) to OpenCL ... (CL_GL_CONTEXT_KHR => wglGetCurrentContext(), CL_WGL_HDC_KHR => wglGetCurrentDC())

Similar Threads

  1. What about a "users contributions" page?
    By spacegoo in forum WebCL - General
    Replies: 1
    Last Post: 12-23-2011, 07:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •