Re: [Plib-users] Texture remains enabled after first use
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2004-12-30 21:15:00
|
Daniel Sperka wrote: > If I explicitly use a state (for the non-textured shape) that calls > rect_state -> disable ( GL_TEXTURE_2D ) ; > then the problem disappears also. That is the correct solution. The way ssgState works (and in retrospect, this may not have been so smart) is that each attribute (like texture being enabled) has THREE states: Enabled, Disabled and Don't Care. By default, everything is Don't Care. So if you don't explicitly disable or enable texture, you'll get whatever state was last applied. This is a good thing for *most* state elements because very often you don't care what state the graphic pipe is in for many of the states and SSG can save time by not making lots of redundant state change calls. > Is this by design? Yes. > If so, is this true of other enable/disable states? Yes. ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |