Selaa lähdekoodia

ComputeSampleTest: reset test between runs (#3561)

Greg Roth 4 vuotta sitten
vanhempi
commit
5f76047313
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      tools/clang/unittests/HLSL/ExecutionTest.cpp

+ 1 - 0
tools/clang/unittests/HLSL/ExecutionTest.cpp

@@ -3424,6 +3424,7 @@ TEST_F(ExecutionTest, ComputeSampleTest) {
   // Test 2D compute shader
   pShaderOp->CS = CS2;
 
+  test.reset();
   test = RunShaderOpTestAfterParse(pDevice, m_support, "ComputeSample", SampleInitFn, ShaderOpSet);
 
   test->Test->GetReadBackData("U0", &data);