diff --git a/examples/Example.h b/examples/Example.h index 62feef12..342a16e1 100644 --- a/examples/Example.h +++ b/examples/Example.h @@ -436,6 +436,11 @@ struct WgWindow : Window //Set the canvas target and draw on it. verify(canvas->target(instance, surface, width, height)); } + + void refresh() override + { + wgpuSurfacePresent(surface); + } }; #else