mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 12:33:37 +02:00
Fix perf tool build
This commit is contained in:
parent
58c7df115f
commit
0c990c621d
1 changed files with 6 additions and 9 deletions
|
@ -240,24 +240,21 @@ public:
|
|||
void renderFrame(gpu::FramePointer& frame) {
|
||||
++_presentCount;
|
||||
_displayContext->makeCurrent(_displaySurface);
|
||||
((gpu::gl::GLBackend&)(*_backend)).cleanupTrash();
|
||||
_backend->recycle();
|
||||
_backend->syncCache();
|
||||
if (frame && !frame->batches.empty()) {
|
||||
frame->preRender();
|
||||
_backend->syncCache();
|
||||
_backend->setStereoState(frame->stereoState);
|
||||
for (auto& batch : frame->batches) {
|
||||
_backend->render(batch);
|
||||
}
|
||||
_gpuContext->executeFrame(frame);
|
||||
|
||||
{
|
||||
auto geometryCache = DependencyManager::get<GeometryCache>();
|
||||
gpu::Batch presentBatch;
|
||||
presentBatch.enableStereo(false);
|
||||
presentBatch.clearViewTransform();
|
||||
presentBatch.resetViewTransform();
|
||||
presentBatch.setFramebuffer(gpu::FramebufferPointer());
|
||||
presentBatch.setResourceTexture(0, frame->framebuffer->getRenderBuffer(0));
|
||||
presentBatch.setPipeline(_presentPipeline);
|
||||
presentBatch.draw(gpu::TRIANGLE_STRIP, 4);
|
||||
_backend->render(presentBatch);
|
||||
_gpuContext->executeBatch(presentBatch);
|
||||
}
|
||||
}
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue