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: pbuffer/GLUT/Cg



Gordon Erlebacher wrote:


This suggests to me that somehow, the pbuffer context must be active when certain aspects of the shader
are defined, although I have not seen this documented anywhere. Any thoughts on the matter? Thanks.

Unless glut's context and the pbuffer's context are shared, I believe that you have to make the pbuffer's context current when you create the shader. (I haven't had any luck getting glut to share its context with a float pbuffer, but admittedly, I haven't tried very hard.)


ie:
CGLSetCurrentContext( pbuffer_cxt )
// create pbuffer shader here
CGLSetCurrentContext( glut_cxt );
// create glut shader here

This is what I'm doing with ARB shaders that operate on floating pbuffers.

-j
_______________________________________________
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: 
 >pbuffer/GLUT/Cg (From: Gordon Erlebacher <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.