On 1 July 2010 20:58, Fabian Bieler der.fabe@gmx.net wrote:
I hoped that OpenGL took care of those cases. According to the spec samplers with incomplete textures bound to them should return (0, 0, 0, 1), too. Wouldn't sampling from a texture unit to which the binding of matching dimensionality is 0 count as incomplete? (At least as long as no one uploads an image to it, I'm not sure if it's legal to use texture name 0)
I don't think we actually unbind the old texture for anything other than 2D textures. In that sense the whole dummy texture scheme is a bit broken anyway.