Jump to content

  • Log In with Google      Sign In   
  • Create Account


glBindBuffer


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 FGFS   Members   -  Reputation: 189

Like
0Likes
Like

Posted 05 June 2013 - 09:07 AM

Hi

  when not compiled as a shared lib it works fine but as shared it crashes at:

 

    glBindBuffer(GL_ARRAY_BUFFER, vbo[index]);

 

Any help would be much appreciated.

Thanks

 



Sponsor:

#2 marcClintDion   Members   -  Reputation: 431

Like
2Likes
Like

Posted 05 June 2013 - 03:20 PM

Buffers allocate and access memory, if your index goes past the bounds of what's been allocated you will have problems. I just tested this by using glBindBuffer(GL_ARRAY_BUFFER, 1000); in a program that only has a few dozen models and it not only crashed the program, it took down VirtualBox OS emulator running Windows7. Make sure '[vbo[index]' is sending valid information to glBindBuffer.  


Consider it pure joy, my brothers and sisters, whenever you face trials of many kinds, because you know that the testing of your faith produces perseverance. Let perseverance finish its work so that you may be mature and complete, not lacking anything.


#3 BitMaster   Crossbones+   -  Reputation: 3766

Like
0Likes
Like

Posted 06 June 2013 - 06:54 AM

You are omitting loads of important information. Which operating system are you working on? If it is Windows, you are most likely using some kind of extension wrangler, because glBindBuffer does not exist in Window's gl.h. Which extension wrangler? Most extension wranglers need some of initialization function to be called before using any of the contained functions (like glewInit for GLEW). How are you linking your extension wrangler? Depending on how you do it you can easily end up with two copies of the same extension wrangler, one in your own DLL one in your main program. Both of them must call their initialization function.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS