Skip to content

gl-renderer: Debug modes

Loïc Molinari requested to merge molinari/weston:improve_debug_modes into main

This MR proposes to improve debugging of the OpenGL renderer by providing a new system to cycle through various debug modes using a debug binding. Here is the list of new debug modes proposed as a start:

  • Wireframe: Blend triangle strip wireframe over a darkened damaged region
  • Batches: Tint draw call batches with different colors
  • Damage: Highlight damaged region with a red tint
  • Opaque: Highlight only the opaque damaged region with a blue tint

The key binding combination is Mod-Shift-Space m.

Merge request reports