Results 1 to 2 of 2

Thread: glBindBuffer() execution problem

  1. #1
    Member Contributor
    Join Date
    Sep 2012
    Posts
    85

    glBindBuffer() execution problem

    Greetings:
    I am running MS VC++ 2010 in W7 trying to understand OpenGL buffers. A program copied from the red book runs fine up to and including the first line below.
    ...
    glGenBuffers(NUM_BUFFERS, buffers);
    glBindBuffer(GL_ARRAY_BUFFER, buffers[VERTICES]);
    ...
    // NUM_BUFFERS = 2, VERTICES = 0

    But once the second line is uncommented, it does compile but blows up executing with
    "Unhandled exception at 0x003bff04 in Buffers.exe: 0xC0000005: Access violation reading location 0x015efdf8."

    I have included and initialized GLUT and GLEW. So what could be the problem? glBindBuffer() wants to access the GPU but something has to be set first? Do I need to use freeGLUT rather than the (outdated?) GLUT?

    Any suggestions would be welcome.
    Thanks,
    Sam

  2. #2
    V-man
    Guest
    You need GL 1.5 at minimum to use VBO. Check your GL version.

Similar Threads

  1. vbo and glBindBuffer crash
    By ale211734 in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 04-22-2015, 02:12 AM
  2. different glBindBuffer for one glDrawElements
    By Oldani in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 01-17-2011, 01:41 AM
  3. Kernel execution's problem
    By Nibul in forum OpenCL
    Replies: 3
    Last Post: 01-11-2010, 06:13 AM
  4. Why not get rid of glBindBuffer()?
    By halo in forum OpenGL: GLSL
    Replies: 7
    Last Post: 12-30-2006, 06:39 AM
  5. Problem with game execution.
    By in forum OpenGL: User Software
    Replies: 1
    Last Post: 02-28-2006, 11:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean