On Tue, Apr 12, 2016 at 9:52 AM, Alistair Leslie-Hughes leslie_alistair@hotmail.com wrote:
@@ -4897,6 +4898,9 @@ static void test_update_subresource(void) ID3D11DeviceContext_ClearRenderTargetView(context, test_context.backbuffer_rtv, red); check_texture_color(test_context.backbuffer, 0x7f0000ff, 1);
- ID3D11DeviceContext_ClearRenderTargetView(context, NULL, green);
- check_texture_color(test_context.backbuffer, 0x7f0000ff, 1);
- draw_quad(&test_context); check_texture_color(test_context.backbuffer, 0x00000000, 0);
The "test_clear_render_target_view" function would be much better place for this test.