Fix potentially uninitialized variable warnings

This commit is contained in:
jp9000
2014-07-12 11:59:46 -07:00
parent f675c8029f
commit a27f2fbb3a
3 changed files with 7 additions and 6 deletions

View File

@@ -502,11 +502,12 @@ void device_load_swapchain(device_t device, swapchain_t swap)
device->cur_swap = swap;
if (swap)
if (swap) {
hdc = swap->wi->hdc;
if (!wgl_make_current(hdc, device->plat->hrc))
blog(LOG_ERROR, "device_load_swapchain (GL) failed");
if (!wgl_make_current(hdc, device->plat->hrc))
blog(LOG_ERROR, "device_load_swapchain (GL) failed");
}
}
void device_present(device_t device)