remove unnecessary _context property from FilamentViewer

This commit is contained in:
Nick Fisher
2024-11-04 08:30:28 +08:00
parent 5ae028f1e9
commit 14b815e009
3 changed files with 3 additions and 5 deletions

View File

@@ -127,8 +127,7 @@ namespace thermion
FilamentViewer::FilamentViewer(const void *sharedContext, const ResourceLoaderWrapperImpl *const resourceLoader, void *const platform, const char *uberArchivePath)
: _resourceLoaderWrapper(resourceLoader)
{
_context = (void *)sharedContext;
Log("Creating engine wiht sharedContext %d", sharedContext);
ASSERT_POSTCONDITION(_resourceLoaderWrapper != nullptr, "Resource loader must be non-null");
@@ -147,7 +146,7 @@ namespace thermion
#else
_engine = Engine::create(Engine::Backend::OPENGL, (backend::Platform *)platform, (void *)sharedContext, nullptr);
#endif
Log("Engine created");
_engine->setAutomaticInstancingEnabled(true);
_renderer = _engine->createRenderer();