Commit 27ceed38 by Manh Nguyen Committed by Commit Bot

Fix replay crash when captured sample doesn't create binary data

Ensure samples without binary data like hello_triangle can be replayed Bug: angleproject:4658 Change-Id: I6da29a05335abe93666b6c19fa769e84c42a9fa8 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2212499 Commit-Queue: Manh Nguyen <nguyenmh@google.com> Reviewed-by: 's avatarCody Northrop <cnorthrop@google.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent ba4e2b94
...@@ -1121,7 +1121,7 @@ void WriteCppReplayIndexFiles(bool compression, ...@@ -1121,7 +1121,7 @@ void WriteCppReplayIndexFiles(bool compression,
source << " if (fp == 0)\n"; source << " if (fp == 0)\n";
source << " {\n"; source << " {\n";
source << " fprintf(stderr, \"Error loading binary data file: %s\\n\", fileName);\n"; source << " fprintf(stderr, \"Error loading binary data file: %s\\n\", fileName);\n";
source << " exit(1);\n"; source << " return;\n";
source << " }\n"; source << " }\n";
source << " fseek(fp, 0, SEEK_END);\n"; source << " fseek(fp, 0, SEEK_END);\n";
source << " long size = ftell(fp);\n"; source << " long size = ftell(fp);\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment