diff --git a/gfx/d3d/d3d.cpp b/gfx/d3d/d3d.cpp index 9734b606ce..bc74862f6d 100644 --- a/gfx/d3d/d3d.cpp +++ b/gfx/d3d/d3d.cpp @@ -746,6 +746,7 @@ static const gfx_ctx_driver_t *d3d_get_context(void *data) static void *d3d_init(const video_info_t *info, const input_driver_t **input, void **input_data) { + driver_t *driver = driver_get_ptr(); d3d_video_t *vid = NULL; const gfx_ctx_driver_t *ctx = NULL;