Style nits/cleanups
This commit is contained in:
parent
ebd62ecd78
commit
ef552ba768
|
@ -780,8 +780,6 @@ static enum gfx_ctx_api gfx_ctx_drm_get_api(void *data) { return drm_api; }
|
|||
static bool gfx_ctx_drm_bind_api(void *video_driver,
|
||||
enum gfx_ctx_api api, unsigned major, unsigned minor)
|
||||
{
|
||||
(void)video_driver;
|
||||
|
||||
drm_api = api;
|
||||
#ifdef HAVE_EGL
|
||||
g_egl_major = major;
|
||||
|
|
|
@ -58,7 +58,8 @@ static void gfx_ctx_khr_display_get_video_size(void *data,
|
|||
|
||||
static void *gfx_ctx_khr_display_init(void *video_driver)
|
||||
{
|
||||
khr_display_ctx_data_t *khr = (khr_display_ctx_data_t*)calloc(1, sizeof(*khr));
|
||||
khr_display_ctx_data_t *khr = (khr_display_ctx_data_t*)
|
||||
calloc(1, sizeof(*khr));
|
||||
if (!khr)
|
||||
return NULL;
|
||||
|
||||
|
@ -102,6 +103,7 @@ static bool gfx_ctx_khr_display_set_resize(void *data,
|
|||
|
||||
khr->width = width;
|
||||
khr->height = height;
|
||||
|
||||
if (!vulkan_create_swapchain(&khr->vk, khr->width, khr->height,
|
||||
khr->swap_interval))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue