From 7a76d7e0a7655f9d89e63f392428d50049904d8b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 12 Nov 2015 01:29:25 +0100 Subject: [PATCH] (D3D) Buildfix --- gfx/d3d/d3d_wrapper.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gfx/d3d/d3d_wrapper.cpp b/gfx/d3d/d3d_wrapper.cpp index b15cc5d9fc..bedc42ea5a 100644 --- a/gfx/d3d/d3d_wrapper.cpp +++ b/gfx/d3d/d3d_wrapper.cpp @@ -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)