Mailing Lists: Apple Mailing Lists

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

Re: Do FBOs work with shared contexts?




On Nov 5, 2007, at 11:35 AM, Robert Chin wrote:

On Nov 2, 2007, at 11:29 AM, Ken Drycksback wrote:
Are there some extra steps needed for FBOs to work with shared contexts or should they "just work" like other textures?
I have two NS contexts, a windowed and a full screen. Everything renders fine in windowed mode but when switching to full screen nothing is rendered to the FBOs. I have tried recreating the FBOs after switching to the full screen context but still nothing so I'm not sure what's going on here?

They should just work. I have not had any problems using FBOs with shared contexts on 10.5 (or 10.4) with the X1600. As long as you are sharing your objects between the contexts, there is no need to recreate them. Do all of your other shared objects work between the two contexts?

Yes, and after more investigating it turned out it was only one FBO that didn't work right, the others were ok. After a couple of days of trying everything to figure out why, the problem turned out to be with the texture coordinates for that FBO. When switching to full screen they didn't match the NPOT FBO size and nothing was rendered to it. Still not sure why but fixing that solved the problem.


Ken

_______________________________________________
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
References: 
 >Do FBOs work with shared contexts? (From: Ken Drycksback <email@hidden>)
 >Re: Do FBOs work with shared contexts? (From: Robert Chin <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.