fixing bug with image recreation

This commit is contained in:
2024-11-05 11:50:40 +01:00
parent e8de2c169d
commit 5f46c8cb55
14 changed files with 49 additions and 47 deletions

View File

@@ -16,7 +16,7 @@ namespace mlx
}
catch(const std::exception& e)
{
Logs::Report(LogType::Error, "formatter exception catched in the log printer : "s + e.what());
Logs::Report(LogType::Error, line, file, function, "formatter exception catched in the log printer: "s + e.what());
}
}
@@ -32,7 +32,7 @@ namespace mlx
}
catch(const std::exception& e)
{
Logs::Report(LogType::Error, "formatter exception catched in the log printer : "s + e.what());
Logs::Report(LogType::Error, line, file, function, "formatter exception catched in the log printer: "s + e.what());
}
}
@@ -48,7 +48,7 @@ namespace mlx
}
catch(const std::exception& e)
{
Logs::Report(LogType::Error, "formatter exception catched in the log printer : "s + e.what());
Logs::Report(LogType::Error, line, file, function, "formatter exception catched in the log printer: "s + e.what());
}
}
@@ -64,7 +64,7 @@ namespace mlx
}
catch(const std::exception& e)
{
Logs::Report(LogType::Error, "formatter exception catched in the log printer : "s + e.what());
Logs::Report(LogType::Error, line, file, function, "formatter exception catched in the log printer: "s + e.what());
}
}
@@ -80,7 +80,7 @@ namespace mlx
}
catch(const std::exception& e)
{
Logs::Report(LogType::Error, "formatter exception catched in the log printer : "s + e.what());
Logs::Report(LogType::FatalError, line, file, function, "formatter exception catched in the log printer: "s + e.what());
}
}
@@ -98,7 +98,7 @@ namespace mlx
}
catch(const std::exception& e)
{
Logs::Report(LogType::Error, "formatter exception catched in the log printer : "s + e.what());
Logs::Report(LogType::FatalError, line, file, function, "formatter exception catched in the log printer: "s + e.what());
}
}
@@ -117,7 +117,7 @@ namespace mlx
}
catch(const std::exception& e)
{
Logs::Report(LogType::Error, "formatter exception catched in the log printer : "s + e.what());
Logs::Report(LogType::FatalError, line, file, function, "formatter exception catched in the log printer: "s + e.what());
}
}
#endif

View File

@@ -12,7 +12,7 @@ namespace mlx
public:
RenderPasses() = default;
void Init(class Renderer& renderer);
void Init();
void Pass(class Scene& scene, class Renderer& renderer, const Vec4f& clear_color);
void Destroy();

View File

@@ -9,7 +9,7 @@ namespace mlx
{
public:
SceneRenderer() = default;
void Init(class Renderer& renderer);
void Init();
void Render(class Scene& scene, class Renderer& renderer); // TODO : add RTT support
void Destroy();
~SceneRenderer() = default;