RenderContentType=FBO failure

Apr 21, 2015 at 8:47 PM
Hi,

After trial and error, I have concluded that RenderContentType = FBO is faster than RenderContentType = NativeWindow.

I have modified the ModernOpenGLSample app to the following:

this.openGLControl1.OpenGLVersion = SharpGL.Version.OpenGLVersion.OpenGL2_1; this.openGLControl1.RenderContextType = SharpGL.RenderContextType.FBO;

More than 50% of the times i run the app, the opengl control is black. In the console, errors appear. The first one says:

OpenGL Error: "Unknown Error", when calling function SharpGL.Clear

It is generated during the following call in openGLControl1_OpenGLDraw:

openGLControl1.OpenGL.Clear(OpenGL.GL_COLOR_BUFFER_BIT | OpenGL.GL_DEPTH_BUFFER_BIT | OpenGL.GL_STENCIL_BUFFER_BIT);

Is this a bug in SharpGL or am I missing something here?