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:
2026-05-05 13:27:32 +02:00
parent 4002030de8
commit 1665569326

View File

@@ -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;
@@ -213,5 +214,8 @@ void TSE::Camera::Unbind()
void TSE::Camera::UpdateRenderTarget()
{
rt->Update();
if (dynamic_cast<IWindow*>(rt) == nullptr)
{
rt->Update();
}
}