diff --git a/src/SceneGraph/Camera.cpp b/src/SceneGraph/Camera.cpp index aba491f2a..4d6d3f305 100644 --- a/src/SceneGraph/Camera.cpp +++ b/src/SceneGraph/Camera.cpp @@ -14,7 +14,6 @@ */ #include "Camera.h" -#include "Framebuffer.h" #include "Scene.h" using namespace std; @@ -49,7 +48,6 @@ template Matrix4 aspectRatioFix(AspectRatioPolicy, const Vector2&, cons template Camera::Camera(ObjectType* parent): ObjectType(parent), _aspectRatioPolicy(AspectRatioPolicy::NotPreserved) {} template void Camera::setViewport(const Math::Vector2& size) { - Framebuffer::setViewport({0, 0}, size); _viewport = size; fixAspectRatio(); @@ -65,8 +63,6 @@ templatescene(); CORRADE_ASSERT(s, "Camera: cannot draw without camera attached to scene", ); - Framebuffer::clear(); - /* Recursively draw child objects */ drawChildren(s, cameraMatrix()); } diff --git a/src/SceneGraph/Camera.h b/src/SceneGraph/Camera.h index 2c29bd7f8..df3f82e61 100644 --- a/src/SceneGraph/Camera.h +++ b/src/SceneGraph/Camera.h @@ -112,17 +112,16 @@ template& size); /** * @brief Draw the scene * - * Calls Framebuffer::clear() and draws the scene using drawChildren(). + * Draws the scene using drawChildren(). */ virtual void draw();