PDA

View Full Version : glPushAttrib()/glPopAttrib() and uniforms



Chris Lux
05-12-2004, 04:08 AM
hi,
i tried glPushAttrib() with GL_CURRENT_BIT and GL_ENABLE_BIT to push and pop shader programs. it works fine with nvidia 61.12 forceware drivers. but this does not work with bound uniforms to the programs. will there be a way to get this work or is it normal, that it does not work? the spec doesn't say anything about glPush/PopAttrib.

thx ;)

Relic
05-13-2004, 12:58 AM
The answer to this lies in chapter 2.17 of the shader objects spec.
It describes the necessary state to implement program objects and the uniform values are not part of it.

Chris Lux
05-13-2004, 02:23 AM
got it working (was a stupid mistake). can anyone try this on a ATi implementation? with nvidia it works to push/pop programs with their bound uniform values (and yes, they were in the same location ;) ).