Results 1 to 2 of 2

Thread: Current Context?

  1. #1
    Member Contributor
    Join Date
    Jan 2001
    Location
    Canada
    Posts
    86

    Current Context?

    Hello,
    Having trouble manipulating multiple GL views. I have tabbed views, all GL enabled. They render fine. Its when i hide and then show the tabs that the rendering disappears. For example, i click a button that shows some of the tabs and hides others. Then when i attempt to go back, my view no longer contains the scene it once did. I did not destroy and recreate it...only hid it.
    I thought it had something to do with the current context, however ive played with it and had no luck . Using MFC BTW. In each of the view classes OnPaint, before i render i make my context current:
    wglMakeCurrent(hDC, m_hGLContext);
    If anyone has ideas or suggestions for me to try out, id appreciate it.
    TIA

  2. #2
    Member Contributor
    Join Date
    Jan 2001
    Location
    Canada
    Posts
    86

    Re: Current Context?

    For rendering in multiple views, can someone simply explain the correct sequence of events to go through in creating/destroying a context.
    TIA

Similar Threads

  1. Query legacy compatibility of current context?
    By outofsync in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 03-22-2015, 12:42 PM
  2. How to get if current GL context is Core or Compatibility
    By Aliii in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 08-27-2014, 04:48 PM
  3. Replies: 1
    Last Post: 06-22-2013, 09:31 PM
  4. making a context current w/o a drawable
    By zen in forum OpenGL: Linux
    Replies: 7
    Last Post: 01-13-2004, 04:00 PM
  5. gl Current Context
    By mr_coolio in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 02-25-2003, 12:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean