fixed flickering issue. problem was, that in the camera update of the render target the window was updatet agein, what internaly starts a new frame, so made the update function only affent non IWindow calsses, for IWindow it strictly is not neccecery anyway
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "Camera.hpp"
|
||||
#include "elements/Transformable.hpp"
|
||||
#include "interfaces/IRenderer.hpp"
|
||||
#include "interfaces/IWindow.hpp"
|
||||
#include "uuid.h"
|
||||
|
||||
TSE::Camera* TSE::Camera::mainCamera = nullptr;
|
||||
@@ -212,6 +213,9 @@ void TSE::Camera::Unbind()
|
||||
}
|
||||
|
||||
void TSE::Camera::UpdateRenderTarget()
|
||||
{
|
||||
if (dynamic_cast<IWindow*>(rt) == nullptr)
|
||||
{
|
||||
rt->Update();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user