On 15/07/10 1:36 , Jason Daly wrote: >> >> I'm trying to create a 1-bit texture, like this: >> >> int internalFormat = GL_RED; >> int pixelFormat = GL_RED; >> int dataType = GL_BITMAP; >> >> I get the following error when running this code: >> Warning: detected OpenGL error 'invalid enumerant' after >> RenderBin::draw(,) >>... > > GL_BITMAP is not valid for a texture data type. The smallest data type > allowed, as you've > already discovered, is GL_UNSIGNED_BYTE.
So that is a limitation of osg::Image? Because glTexImage2D() supports it. (Or at least it did once, I have never used it and was quite surprised to find it in the man page.) /ulrich _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

