summaryrefslogtreecommitdiff
path: root/examples/triangle/ex_triangle.c
diff options
context:
space:
mode:
authorOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-05-09 18:03:03 +1000
committerOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-05-09 18:03:03 +1000
commit3a0557d98ba311b031ad53ceb8fc6025013f65dc (patch)
tree67da99c5b7bfeebc2c602a566da79a7e73b74d30 /examples/triangle/ex_triangle.c
parentc950737122cd88e1183896614d4276e219c3c158 (diff)
fix some validation errors
Diffstat (limited to 'examples/triangle/ex_triangle.c')
-rw-r--r--examples/triangle/ex_triangle.c4
1 files changed, 3 insertions, 1 deletions
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);