From 851af0532d0a14cd0ed976b6385655d9abf0fce9 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 29 Sep 2017 17:46:57 +0200 Subject: [PATCH] d3d_set_vertex_shader - add D3D9 C codepath --- gfx/common/d3d_common.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gfx/common/d3d_common.cpp b/gfx/common/d3d_common.cpp index b0848dfb66..dc24db08c8 100644 --- a/gfx/common/d3d_common.cpp +++ b/gfx/common/d3d_common.cpp @@ -461,6 +461,9 @@ HRESULT d3d_set_vertex_shader(LPDIRECT3DDEVICE dev, unsigned index, return S_OK; #elif defined(HAVE_D3D8) return E_FAIL; +#elif defined(HAVE_D3D9) && !defined(__cplusplus) + LPDIRECT3DVERTEXSHADER shader = (LPDIRECT3DVERTEXSHADER)data; + return IDirect3DDevice9_SetVertexShader(dev, shader); #else LPDIRECT3DVERTEXSHADER shader = (LPDIRECT3DVERTEXSHADER)data; return dev->SetVertexShader(shader);