(XDK) Ifdef FBO video_poke functions with HAVE_FBO

This commit is contained in:
twinaphex 2013-03-10 20:24:19 +01:00
parent e6eb583b23
commit dd697ded76
2 changed files with 6 additions and 2 deletions

View File

@ -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);

View File

@ -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,
};