Fixed warnings

main
noah metz 2024-10-22 18:33:12 -06:00
parent bac3d87b9e
commit df441f6560
2 changed files with 2 additions and 0 deletions

@ -143,6 +143,7 @@ VkResult record_draw_commands(
VkResult draw_frame( VkResult draw_frame(
RenderContext* context, RenderContext* context,
double time) { double time) {
(void)time;
VkResult result; VkResult result;
result = vkWaitForFences(context->device, 1, &context->in_flight_fences[context->current_frame], VK_TRUE, UINT64_MAX); result = vkWaitForFences(context->device, 1, &context->in_flight_fences[context->current_frame], VK_TRUE, UINT64_MAX);

@ -141,6 +141,7 @@ VkResult render_thread(GLFWwindow* window, RenderContext* render) {
double frame_time = glfwGetTime(); double frame_time = glfwGetTime();
double delta_time = frame_time - last_frame_time; double delta_time = frame_time - last_frame_time;
(void)delta_time;
result = draw_frame(render, frame_time); result = draw_frame(render, frame_time);
if(result != VK_SUCCESS) { if(result != VK_SUCCESS) {
fprintf(stderr, "draw_frame error: %s\n", string_VkResult(result)); fprintf(stderr, "draw_frame error: %s\n", string_VkResult(result));