Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pbuffer/context weirdness




Our app uses one context for both an on-screen window and an offscreen pbuffer. Here is the sequence of events where weird things happen:


1.  on screen window is cleared
2.  off screen window is cleared
3.  render off screen
4.  switch back to on screen window
5.  render on screen

When get to step 4, switching to the on screen window, the buffer is no longer clear. It's filled with scrambled junk which seems to come from the terminal window that I ran the program in.

I know that one work-around is to use two contexts that share resources, but I'd rather not, to maintain compatibility with the X-windows version.

Am I doing something wrong?  Or is it a bug?

Thanks,

Dave

David T. Chen, PhD  [contractor]
mailto:email@hidden         http://visual.nlm.nih.gov/~dave
Office of High Performance Computing and Communications
National Library of Medicine

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.