Hi folks,

I think I've found an improvement or a possible bug
for the textures in osg. If one do allocate empty
textures (not from images) then the texture is created
with glTexImageXD call and with 0 as pixel pointer. 

As per OpenGL 1.1 specification the texture is
allocated but the data in the texture is not defined.
On some machines this is not an issue, since the
freshly allocated texture do contain just 0 for every
pixel. However on some setups the texture do contain
random data.

For my case I do need to assume that the fresh
allocated textures do contain 0 as values. Hence I
need something like cleanup function, which do bring
the texture in a defined state after it was allocated.
Therefor I would like to write a patch for the texture
classes which do fill the texture with some defined
value (default 0) during the allocation if user whish
this. 

Any comments, ideas or suggestions?


Best regards,
Art







      E-Mails jetzt auf Ihrem Handy.
www.yahoo.de/go
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to