Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

dvogel

glGenTextures

This topic is 5717 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

After I run this code:
int texture_id = -1;
glGenTextures(1, &texture_id);
printf("%d\n", glGetError());
 
texture_id is still equal to -1 and glGetError() returns GL_NO_ERROR. I have enabled texture mapping with glEnable(GL_TEXTURE_2D) and this code is outside any glBegin()/glEnd() pairs. Anyone have any ideas how to figure this out?

Share this post


Link to post
Share on other sites
Advertisement
Try not to give initial value to texture_id.

And, DONT USE INTS. GLuint texture_id must be ok...

I''m not sure for what i''m saying, but try it anyway!!!!. Yuo don''t have something to lose!!!!!!

HellRaiZer

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!