The OpenGL driver may produce errors. These are difficult to debug.
Aardvark.Rendering lets you inspect the call that produces such an error. To enable this:
- Set Config.CheckErrors to true
- Create your application with debug mode enabled by calling the constructor with true as argument
- In the Aardvark.Rendering code (addsource it if needed!) go to the file
Aardvark.Rendering.GL/Core/Config.fsand find the function called
Error.debug(around line 90). Breakpoints in this function will hit when a GL call produces errors.
You can now inspect and hopefully fix the broken code location.