4 ms·
When getting started with a new OpenGL project, the first thing you should do is to enable the debug output [0] w/ glDebugMessageCallback. You also need to enab
by exDM69 8y ago
When getting started with a new OpenGL project, the first thing you should do is to enable the debug output [0] w/ glDebugMessageCallback. You also need to enable the debug bit when creating a GL context.
This will give you human readable error messages (as in complete sentences of what went wrong) as well as some other info to pinpoint what went wrong and where.
Additionally, it's a good idea to use Renderdoc [1] or your $GPU_VENDOR's debugging and profiling tools.
[0] https://www.khronos.org/opengl/wiki/Debug_Output https://www.khronos.org/opengl/wiki/Debug_Output
[1] https://renderdoc.org/ https://renderdoc.org/
- hyperpallium 8y agoGood to know about! For openGL ES, it looks like it wasn't implemented until version 3.2, the most recent (I don't have a device with that version). https://developer.android.com/reference/android/opengl/GLES32.html#glDebugMessageCallback(android.opengl.GLES32.DebugProc) https://developer.android.com/reference/android/opengl/GLES3...