Results 1 to 5 of 5

Thread: Keeping resources on server side alive

  1. #1
    Junior Member
    Join Date
    Apr 2011
    Posts
    3

    Keeping resources on server side alive

    Hi,

    I have an applcation where windows are being opened and closed. Is there a strategy which allows me to keep the resources, like texture objects and VBOs etc, alive while windows are being closed and opened?

    Thanks.

  2. #2
    Senior Member
    Join Date
    May 2006
    Posts
    353

    Re: Keeping resources on server side alive

    OpenGL (ES) resources belong to a GL context. A context is independent of any windows you might create or destroy.
    Georg Kolling, Imagination Technologies
    Please ask questions specific to PowerVR hardware or SDKs on the PowerVR Insider Forum
    DevTech@imgtec.com | http://www.powervrinsider.com

  3. #3
    Junior Member
    Join Date
    Apr 2011
    Posts
    3

    Re: Keeping resources on server side alive

    I am developing this application running on CE. From a HWND, I get a HDC, which is used to get an EGLDisplay. Then from which I create an EGLSurface and then EGLContext. So far so good. From another HWND, I get another EGLDisplay, and create a new EGLSurface. Then I tried two things:

    1) Creating a new EGLContext by calling eglCreateContext and passing the existing EGLContext as an argument, and hoping to share the resources. But eglCreateContext fails.
    2) Sharing the EGLContext between two sets of EGLDisplay and EGLSurface. But eglMakeCurrent fails.

    Any idea?

  4. #4
    Junior Member
    Join Date
    Apr 2011
    Posts
    3

    Re: Keeping resources on server side alive

    I have the answer to myself: EGLDisplay should be shared too.

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

    Re: Keeping resources on server side alive

    So this keeps the texture objects open and running?

Similar Threads

  1. Nvidia OpenCL and Terminal Server
    By lion in forum OpenCL
    Replies: 8
    Last Post: 05-25-2012, 06:08 AM
  2. Honestly, I must be the stupidest person alive
    By gadlor in forum OpenML Coding & Technical Issues
    Replies: 2
    Last Post: 10-17-2003, 10:26 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
  •