In my app, I need to switch between two GLSL programs through glUseProgram(program). I am wondering if I write:
glUseProgram(program1)
buf1 = glGenBuffers(1)
glUseProgram(program2)
buf2 = glGenBuffers(1)
Can buf1 and buf2 be the same value? i.e. does each program have its own buffers or does they share buffers?