Don't use AR recorder in playback mode

This commit is contained in:
Georg Hagen
2024-06-04 15:09:27 +02:00
parent 463f632432
commit 58e63b6610
4 changed files with 10 additions and 3 deletions

View File

@@ -71,7 +71,7 @@ namespace OpenVulkano::AR
class ArSession
{
protected:
ArSession(const ArSessionMetadata& metadata) : metadata(metadata), recorder(this) {}
ArSession(const ArSessionMetadata& metadata) : metadata(metadata), recorder(metadata.playback ? nullptr : this) {}
public:
/**