Skip to content

Commit 069564e

Browse files
removed fprintf
1 parent 9af6460 commit 069564e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

androidgpulib/src/main/cpp/androidgpu.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
#include <string.h>
1212
#include <math.h>
1313

14-
#define CHECK(result) if (VK_SUCCESS != (result)) { fprintf(stderr, "Failure at %u %s\n", __LINE__, __FILE__); exit(-1); }
14+
15+
#define CHECK(result) if (VK_SUCCESS != (result)) { LOGE("Failure at %u %s\n", __LINE__, __FILE__); exit(-1); }
1516

1617

1718

@@ -335,6 +336,8 @@ Java_com_lib_androidgpulib_AndroidGPU_run(
335336
exit(-1);
336337
}
337338

339+
CHECK(VK_ERROR_DEVICE_LOST);
340+
338341
const VkApplicationInfo applicationInfo = {
339342
VK_STRUCTURE_TYPE_APPLICATION_INFO,
340343
0,

0 commit comments

Comments
 (0)