Jump to content
  • Advertisement

Archived

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

newt

funny storry

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

Just a litte hint to save you time... I spend hours before I found this anoying bug: All things worked well until i tryed to add a skybox. But when I did draw the box, openGL has gone mad (didn''t cleared the z-buffer, could not determine the oGL Version and the Extensions...). But finaly this line caused all the trouble: glEnd; But i didn''t wrote the program in pascal (C/C++)! Who knows whats wrong?

Share this post


Link to post
Share on other sites
Advertisement
It should be glEnd();

glEnd is a function.

The thing is, since functions are actually pointers, then you can type no-op statement with them also. So glEnd; is a valid C++ statement,

just like this is also valid :

    

int a;

a;



though I know that if you use a function like that VC++ 6 will give you a warning.

I don't remember for GCC.

Edited by - Gorg on June 26, 2001 1:01:54 PM

Share this post


Link to post
Share on other sites
Unfortunately some things become invisible after looking too long at them

Share this post


Link to post
Share on other sites
Lol yeah, the smallest bugs are the most annoying ones, u just cant find them. I also forgot to use glEnd(); last time... and euhm my textures went all wrong.. till i noticed i did a test a while ago what caused the problem hehe.

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.

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!