Jump to content
  • Advertisement
Sign in to follow this  

Mind boggeling bug.

This topic is 4895 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

ok i got a bug, a weird one. this is my VBO rendering code for my main object class
void entety::renderVbo( int shInstance)

	int i,s;
	shader tx;	
	CFvbo vbo;	
	glEnable(GL_TEXTURE_2D );

		tx.bind(skin[s][shInstance]);  //sets the current skin

		tx.unbind();  //sets the current skin

	glDisable( GL_TEXTURE_2D );
	glColorMask(1, 1, 1, 1);


and when i run this nothing happens. Unless i comment out the lines tx.bind(skin[s][shInstance]); tx.unbind(); this is bad because those two line should bind the current shader to the geometry i am rendering, no shader = everything is gray and untextured. So then i thought, perhaps there is something in the shader code, so i started comenting out things. No change. not even after i comented out all the code in those function. Thats right they now contain no code at all. But still nothing is renderd(unless i coment out those two little lines that is). It allso doesn't matter where they are in the function, the result is still the same. The odd thing is that it used to work with my previous VBO implementation, and the only change i made to this one is is where the data about the VBO is stored and how it's accesed. Any thought's?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!