Sign in to follow this  
chibitotoro0_0

glGenTextures() small problem

Recommended Posts

Hi guys. I was writing some code for textures and I ran into a weird problem which didn't happen in a previous version of my class. When I called glGenTextures(1,&t) before everything worked fine. It returned 1,2 ... etc. After I made some updates it stopped being initialized through the function call. So I made the following code and it still produced the same results in both version! odd? void main(){ GLuint test; test=-1; glGenTextures(1,&test); cout<<test<<endl; } and the output is 4294967295 aka -1 in unsigned ints. I find it strange that in the base case of a trial it still produced this result. I am using GLUT. Thanks for the help and clarification.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this