renderer: Render previous frame when no new one is available.

This commit is contained in:
bunnei
2018-01-14 23:51:54 -05:00
parent 2adde6ae8b
commit ebd613c2cc
4 changed files with 22 additions and 17 deletions

View File

@ -5,6 +5,7 @@
#pragma once
#include <memory>
#include <boost/optional.hpp>
#include "common/assert.h"
#include "common/common_types.h"
@ -47,7 +48,7 @@ public:
virtual ~RendererBase() {}
/// Swap buffers (render frame)
virtual void SwapBuffers(const FramebufferInfo& framebuffer_info) = 0;
virtual void SwapBuffers(boost::optional<const FramebufferInfo&> framebuffer_info) = 0;
/**
* Set the emulator window to use for renderer