d3drm: Fix initial specular value of the Material2 interface.
This commit is contained in:
parent
d71bf7fdb7
commit
b2de41308e
|
@ -320,6 +320,10 @@ HRESULT Direct3DRMMaterial_create(IDirect3DRMMaterial2** ret_iface)
|
|||
object->IDirect3DRMMaterial2_iface.lpVtbl = &Direct3DRMMaterial2_Vtbl;
|
||||
object->ref = 1;
|
||||
|
||||
object->specular.r = 1.0f;
|
||||
object->specular.g = 1.0f;
|
||||
object->specular.b = 1.0f;
|
||||
|
||||
*ret_iface = &object->IDirect3DRMMaterial2_iface;
|
||||
|
||||
return S_OK;
|
||||
|
|
|
@ -1006,7 +1006,7 @@ static void test_Material2(void)
|
|||
|
||||
hr = IDirect3DRMMaterial2_GetSpecular(pMaterial2, &r, &g, &b);
|
||||
ok(hr == D3DRM_OK, "Cannot get emissive (hr = %x)\n", hr);
|
||||
todo_wine ok(r == 1.0f && g == 1.0f && b == 1.0f, "wrong specular r=%f g=%f b=%f, expected r=1.0 g=1.0 b=1.0\n", r, g, b);
|
||||
ok(r == 1.0f && g == 1.0f && b == 1.0f, "wrong specular r=%f g=%f b=%f, expected r=1.0 g=1.0 b=1.0\n", r, g, b);
|
||||
|
||||
hr = IDirect3DRMMaterial2_GetAmbient(pMaterial2, &r, &g, &b);
|
||||
ok(hr == D3DRM_OK, "Cannot get emissive (hr = %x)\n", hr);
|
||||
|
|
Loading…
Reference in New Issue