Fix autotests for new global resources

This commit is contained in:
baldurk
2023-06-21 11:40:37 +01:00
parent 2887409961
commit 472add2f51
3 changed files with 21 additions and 10 deletions
@@ -167,6 +167,9 @@ RD_TEST(D3D11_Refcount_Check, D3D11GraphicsTest)
reftest.annot = NULL;
reftest.swapBlitVS = NULL;
reftest.swapBlitPS = NULL;
reftest.DefaultTriVS = NULL;
reftest.DefaultTriPS = NULL;
reftest.DefaultTriVB = NULL;
dbg->ReportLiveDeviceObjects(D3D11_RLDO_DETAIL);
+15 -10
View File
@@ -338,17 +338,17 @@ float4 main(float4 pos : SV_Position) : SV_Target0
{
swapBlitVS = CreateVS(Compile(D3DFullscreenQuadVertex, "main", "vs_4_0"));
swapBlitPS = CreatePS(Compile(blitPixel, "main", "ps_5_0"));
ID3DBlobPtr vsblob = Compile(D3DDefaultVertex, "main", "vs_4_0");
ID3DBlobPtr psblob = Compile(D3DDefaultPixel, "main", "ps_4_0");
CreateDefaultInputLayout(vsblob);
DefaultTriVS = CreateVS(vsblob);
DefaultTriPS = CreatePS(psblob);
DefaultTriVB = MakeBuffer().Vertex().Data(DefaultTri);
}
ID3DBlobPtr vsblob = Compile(D3DDefaultVertex, "main", "vs_4_0");
ID3DBlobPtr psblob = Compile(D3DDefaultPixel, "main", "ps_4_0");
CreateDefaultInputLayout(vsblob);
DefaultTriVS = CreateVS(vsblob);
DefaultTriPS = CreatePS(psblob);
DefaultTriVB = MakeBuffer().Vertex().Data(DefaultTri);
}
void D3D11GraphicsTest::Shutdown()
@@ -372,6 +372,11 @@ void D3D11GraphicsTest::Shutdown()
swapBlitVS = NULL;
swapBlitPS = NULL;
DefaultTriVS = NULL;
DefaultTriPS = NULL;
DefaultTriVB = NULL;
}
bool D3D11GraphicsTest::Running()
+3
View File
@@ -113,6 +113,9 @@ void OpenGLGraphicsTest::PostInit()
glBindVertexArray(DefaultTriVAO);
ConfigureDefaultVAO();
glBindVertexArray(0);
glBindBuffer(GL_ARRAY_BUFFER, 0);
DefaultTriProgram = MakeProgram(GLDefaultVertex, GLDefaultPixel);
}