remove unnecessary _context property from FilamentViewer
This commit is contained in:
@@ -153,7 +153,6 @@ namespace thermion
|
||||
|
||||
private:
|
||||
const ResourceLoaderWrapperImpl *const _resourceLoaderWrapper;
|
||||
void* _context = nullptr;
|
||||
Scene *_scene = nullptr;
|
||||
Engine *_engine = nullptr;
|
||||
thermion::ThreadPool *_tp = nullptr;
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -15,7 +15,7 @@ list(APPEND PLUGIN_SOURCES
|
||||
)
|
||||
|
||||
set(USE_ANGLE FALSE)
|
||||
set(WGL_USE_BACKING_WINDOW TRUE)
|
||||
set(WGL_USE_BACKING_WINDOW FALSE)
|
||||
|
||||
if(USE_ANGLE)
|
||||
add_compile_definitions(USE_ANGLE)
|
||||
|
||||
Reference in New Issue
Block a user