[PATCH] d3dx9/test: Add TextureShader GetConstantBuffer tests
Matteo Bruni
matteo.mystral at gmail.com
Mon Aug 22 04:32:40 CDT 2016
2016-08-17 8:53 GMT+02:00 Alistair Leslie-Hughes <leslie_alistair at hotmail.com>:
> + hr = D3DXCreateTextureShader(texture_noise, &shader);
> + ok(hr == S_OK, "got %08x\n", hr);
> + if(hr == S_OK)
> + {
> + ID3DXBuffer *buffer = NULL;
> +
> + hr = shader->lpVtbl->GetConstantBuffer(shader, &buffer);
> + todo_wine ok(hr == S_OK, "got %08x\n", hr);
> + if(hr == S_OK)
> + {
> + int size = ID3DXBuffer_GetBufferSize(buffer);
> + ok(size == 16, "GetBufferSize failed, got %u\n", size);
Do you know what the returned buffer is supposed to be? Dumping the
contents seems to suggest arbitrary (but not random) stack data.
More information about the wine-devel
mailing list