Skip to content

Commit d4d1caf

Browse files
committed
Fix compilation error
1 parent d7f4bee commit d4d1caf

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

Quake/cl_main.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,8 +1163,9 @@ void CL_Viewpos_f (void)
11631163
Con_SafePrintf ("Viewpos: %s\n", buf);
11641164

11651165
if (Cmd_Argc () >= 2 && !q_strcasecmp (Cmd_Argv (1), "copy"))
1166-
if (SDL_SetClipboardText (buf) < 0)
1167-
Con_SafePrintf ("Clipboard copy failed: %s\n", SDL_GetError ());
1166+
{
1167+
SDL_SetClipboardText (buf);
1168+
}
11681169
#endif
11691170
}
11701171

Quake/r_brush.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1550,8 +1550,8 @@ void R_AllocateLightmapComputeBuffers ()
15501550
"BModel instances"},
15511551
};
15521552
R_CreateBuffers (
1553-
countof (buffer_create_infos), buffer_create_infos, &frame_upload_buffers_memory, VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT, VK_MEMORY_PROPERTY_HOST_CACHED_BIT,
1554-
&num_vulkan_bmodel_allocations, "Frame upload buffers");
1553+
countof (buffer_create_infos), buffer_create_infos, &frame_upload_buffers_memory, VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT,
1554+
VK_MEMORY_PROPERTY_HOST_CACHED_BIT, &num_vulkan_bmodel_allocations, "Frame upload buffers");
15551555
}
15561556

15571557
/*

0 commit comments

Comments
 (0)