From 3a0557d98ba311b031ad53ceb8fc6025013f65dc Mon Sep 17 00:00:00 2001 From: Omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Thu, 9 May 2024 18:03:03 +1000 Subject: fix some validation errors --- examples/triangle/ex_triangle.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples/triangle/ex_triangle.c') diff --git a/examples/triangle/ex_triangle.c b/examples/triangle/ex_triangle.c index 1f7ef5e..3a9b7db 100644 --- a/examples/triangle/ex_triangle.c +++ b/examples/triangle/ex_triangle.c @@ -53,7 +53,9 @@ int main() { static f64 x = 0.0; x += 0.01; - gpu_backend_begin_frame(); + if (!gpu_backend_begin_frame()) { + continue; + } gpu_cmd_encoder* enc = gpu_get_default_cmd_encoder(); // begin recording gpu_cmd_encoder_begin(*enc); -- cgit v1.2.3-70-g09d2