The reason for this is that you don't have a valid OpenGL context.
But apart from that is there a reason why you're trying to create the texture yourself? Instead of using, say, OSG for that? /ulrich On 16/4/09 6:58 AM, su hu wrote:
After glGenTextures, I use glGetError to get the error. The result is : GL_INVALID_OPERATION. ... 2009/4/16 su hu <ttts...@gmail.com <mailto:ttts...@gmail.com>> Hi all, When I tried to create a texture by glGenTextures in OSG, I met a problem. glGenTextures can not create a texture object. Zero is returned and no texture is created. Source codes are as follow: ... else if(LoadTexture) { GLuint TexID = 0; glGenTextures(1, &TexID ); .... }
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org