Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualUssyless

Posted 19 February 2013 - 08:43 PM

Greetings, so i'm trying to use vertex buffer objects, however, glGenBuffers is throwing me an access violation

 

Checklist time:

i have glew installed.

i have freeglut installed

included in this order

 

#include <GL/glew.h>
#include <GL/wglew.h>
#include <GL/freeglut.h>
i have a linkers to the appropriate libraries, (glew32, freeglut) unless i missed something
i have run glewinit (both before and after glutinit on seperate attempts)
genbuffers is run as follows
...
GLuint VBO = 0;
void init(){    
    float temp[]={10,10,20,10,10,20};
    glGenBuffers(1,&VBO);
...
according to the utilities included in glew, my open gl version is
version string: 4.2.11931
 
 
any help?
 
i can provide more code if needed

#1Ussyless

Posted 19 February 2013 - 08:42 PM

Greetings, so i'm trying to use vertex buffer objects, however, glGenBuffers is throwing me an access violation

 

Checklist time:

i have glew installed.

i have freeglut installed

included in this order

 

#include <GL/glew.h>
#include <GL/wglew.h>
#include <GL/freeglut.h>
i have a linker to the appropriate libraries, unless i missed something
i have run glewinit (both before and after glutinit on seperate attempts)
genbuffers is run as follows
...
GLuint VBO = 0;
void init(){    
    float temp[]={10,10,20,10,10,20};
    glGenBuffers(1,&VBO);
...
according to the utilities included in glew, my open gl version is
version string: 4.2.11931
 
 
any help?
 
i can provide more code if needed

PARTNERS