Align OpenGL textured integration baselines
This commit is contained in:
@@ -175,7 +175,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
||||
pipelineState.Apply();
|
||||
|
||||
OpenGLTexture texture;
|
||||
if (!texture.LoadFromFile("Res/Image/earth.png", true)) {
|
||||
if (!texture.LoadFromFile("Res/Image/earth.png")) {
|
||||
Log("[ERROR] Failed to load texture");
|
||||
return -1;
|
||||
}
|
||||
@@ -215,15 +215,17 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
||||
|
||||
commandList.Draw(PrimitiveType::TriangleStrip, 4, 0);
|
||||
|
||||
swapChain.Present(0, 0);
|
||||
frameCount++;
|
||||
|
||||
if (frameCount >= captureEndFrame) {
|
||||
RenderDocCapture::Get().EndCapture();
|
||||
Log("[INFO] RenderDoc capture ended at frame %d", frameCount);
|
||||
Log("[INFO] Capture complete - taking screenshot!");
|
||||
OpenGLScreenshot::Capture(device, swapChain, "quad.ppm");
|
||||
break;
|
||||
}
|
||||
|
||||
swapChain.Present(0, 0);
|
||||
|
||||
if (frameCount == captureStartFrame) {
|
||||
RenderDocCapture::Get().BeginCapture("OpenGL_Quad_Test");
|
||||
Log("[INFO] RenderDoc capture started at frame %d", frameCount);
|
||||
@@ -231,9 +233,6 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
||||
}
|
||||
}
|
||||
|
||||
Log("[INFO] Capture complete - taking screenshot!");
|
||||
OpenGLScreenshot::Capture(device, swapChain, "quad.ppm");
|
||||
|
||||
sampler.Shutdown();
|
||||
texture.Shutdown();
|
||||
vertexArray.Shutdown();
|
||||
@@ -249,4 +248,4 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
||||
|
||||
Log("[INFO] OpenGL Quad Test Finished");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user