|Project:||The Open Toolkit library|
I'm running the following lines of code:
uint fbo; GL.GenFramebuffers(1, out fbo); GL.BindFramebuffer(FramebufferTarget.Framebuffer, fbo);
GenFramebuffers() is returning a valid ID, and GL.GetError() confirms that there are no problems at this stage. BindFramebuffer() generates an 'Invalid Operation' error when executed. Calling BindFramebuffer() with a zero for the second parameter is fine.
This is all happening on an ATI x1200 card under Windows7 32-bit, and as it's an ATI I strongly suspect the culprit to be their lousy drivers, but I was wondering if anyone else had seen this? The above code works perfectly on my Nvidia card.
I've also tried running the OpenTK FramebufferObject example, which does exactly the same thing.