25 Jul
2016
25 Jul
'16
11:23 p.m.
2016-07-21 11:06 GMT+02:00 Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com>:
+HRESULT WINAPI D3DXCreateTextureShader(const DWORD *function, ID3DXTextureShader **texture_shader) +{ + struct d3dx9_texture_shader *object; + + TRACE("function %p, texture_shader %p.\n", function, texture_shader); + + if (!function || !texture_shader) + return D3DERR_INVALIDCALL; + + object = HeapAlloc(GetProcessHeap(), 0, sizeof(*object)); + if (!object) + return E_OUTOFMEMORY; + + object->ID3DXTextureShader_iface.lpVtbl = &d3dx9_texture_shader_vtbl; + object->ref = 1; + + *texture_shader = &object->ID3DXTextureShader_iface; + + return D3D_OK; +}
It would be nice to have a test for this.