diff --git a/driver.h b/driver.h index 1642819d6d..84d4accdcd 100644 --- a/driver.h +++ b/driver.h @@ -232,8 +232,10 @@ typedef struct video_poke_interface { void (*set_blend)(void *data, bool enable); void (*set_filtering)(void *data, unsigned index, bool smooth); +#ifdef HAVE_FBO void (*set_fbo_state)(void *data, unsigned state); unsigned (*get_fbo_state)(void *data); +#endif void (*set_aspect_ratio)(void *data, unsigned aspectratio_index); void (*apply_state_changes)(void *data); diff --git a/xdk/xdk_d3d.cpp b/xdk/xdk_d3d.cpp index 84d60b6cb5..5df77fa2cd 100644 --- a/xdk/xdk_d3d.cpp +++ b/xdk/xdk_d3d.cpp @@ -973,14 +973,16 @@ static void xdk_d3d_set_blend(void *data, bool enable) static void xdk_d3d_apply_state_changes(void *data) { - gl_t *gl = (gl_t*)data; - gl->should_resize = true; + xdk_d3d_video_t *d3d = (xdk_d3d_video_t*)data; + d3d->should_resize = true; } static const video_poke_interface_t d3d_poke_interface = { xdk_d3d_set_blend, xdk_d3d_set_filtering, +#ifdef HAVE_FBO xdk_d3d_set_fbo_state, +#endif xdk_d3d_set_aspect_ratio, xdk_d3d_apply_state_changes, };