tests/unstructured/cudarenderer-2.1h/src/main.cpp
void create_buffer(GLuint* buffer)
{
    glGenBuffersARB(1, buffer);
    glBindBuffer(GL_PIXEL_PACK_BUFFER, *buffer);
    glBufferData(GL_PIXEL_PACK_BUFFER, MAXX*MAXY*4, NULL, GL_DYNAMIC_DRAW);
    glBindBuffer(GL_PIXEL_PACK_BUFFER, 0);
}
// OpenGL buffer and texture helper functions
OpenGL buffer and texture helper functions
OpenGL buffer and texture helper functions
void create_buffer(GLuint* buffer)
{
    glGenBuffersARB(1, buffer);
    glBindBuffer(GL_PIXEL_PACK_BUFFER, *buffer);
    glBufferData(GL_PIXEL_PACK_BUFFER, MAXX*MAXY*4, NULL, GL_DYNAMIC_DRAW);
    glBindBuffer(GL_PIXEL_PACK_BUFFER, 0);
}
void create_buffer ( GLuint * buffer ) { glGenBuffersARB ( 1 , buffer ) ; glBindBuffer ( GL_PIXEL_PACK_BUFFER , * buffer ) ; glBufferData ( GL_PIXEL_PACK_BUFFER , MAXX * MAXY * 4 , NULL , GL_DYNAMIC_DRAW ) ; glBindBuffer ( GL_PIXEL_PACK_BUFFER , 0 ) ; }
OpenGL buffer and texture helper functions
OpenGL buffer and texture helper functions