Commit b2de4130 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

d3drm: Fix initial specular value of the Material2 interface.

parent d71bf7fd
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment