make headless rendering work again by setting the correct fbo

This commit is contained in:
Konstantin Käfer
2014-07-07 12:39:03 -07:00
parent 853c9a5876
commit 59967fd709
5 changed files with 99 additions and 87 deletions

View File

@@ -150,8 +150,10 @@ private:
// ready for rendering.
std::atomic_flag is_rendered = ATOMIC_FLAG_INIT;
private:
public:
View &view;
private:
Transform transform;
TransformState state;

View File

@@ -20,6 +20,12 @@ public:
// renderer setup since the render thread doesn't switch the contexts.
virtual void make_active() = 0;
// Returns the base framebuffer object, if any, and 0 if using the system
// provided framebuffer.
virtual unsigned int root_fbo() {
return 0;
}
protected:
llmr::Map *map = nullptr;
};