(D3D) Buildfix

This commit is contained in:
twinaphex 2015-11-12 01:29:25 +01:00
parent 823e2db596
commit 7a76d7e0a7

View File

@ -439,9 +439,9 @@ void d3d_enable_blend_func(void *data)
if (!d3d_restore_device(dev))
return;
d3d_render_state(dev, D3DRS_SRCBLEND, D3DBLEND_SRCALPHA);
d3d_render_state(dev, D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA);
d3d_render_state(dev, D3DRS_ALPHABLENDENABLE, true);
d3d_set_render_state(dev, D3DRS_SRCBLEND, D3DBLEND_SRCALPHA);
d3d_set_render_state(dev, D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA);
d3d_set_render_state(dev, D3DRS_ALPHABLENDENABLE, true);
}
void d3d_enable_alpha_blend_texture_func(void *data)
@ -486,7 +486,7 @@ void d3d_disable_blend_func(void *data)
if (!d3d_restore_device(dev))
return;
d3d_render_state(dev, D3DRS_ALPHABLENDENABLE, false);
d3d_set_render_state(dev, D3DRS_ALPHABLENDENABLE, false);
}
void d3d_set_vertex_declaration(void *data, void *vertex_data)