Original Post
Whenever I use this function I always get the GL_INVALID_OPERATION value returned. Even at the very beginning of the application I will repeatedly call the function and print out the return value but I always get GL_INVALID_OPERATION. Is the call itself causing the error? After the first call isn’t the flag supposed to be set to GL_NO_ERROR?