diff --git a/gfx/d3d/d3d.cpp b/gfx/d3d/d3d.cpp index 8dc6dccf29..07a4eee4e4 100644 --- a/gfx/d3d/d3d.cpp +++ b/gfx/d3d/d3d.cpp @@ -1134,7 +1134,7 @@ static void *d3d_init(const video_info_t *info, #endif #endif - gfx_ctx_ctl(GFX_CTL_SET, ctx_driver); + gfx_ctx_ctl(GFX_CTL_SET, (void*)ctx_driver); if (!d3d_construct(d3d, info, input, input_data)) {