trying to make it work without -rdynamic
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "materialsystem/imaterialsystem.h"
|
||||
#include "igamewindow.h"
|
||||
|
||||
class CMaterialSystem: public IMaterialSystem
|
||||
{
|
||||
@@ -6,8 +7,12 @@ public:
|
||||
virtual void Init() override;
|
||||
virtual void Frame( float fTime ) override;
|
||||
virtual void Shutdown() override;
|
||||
|
||||
virtual void RenderGameWindow( IGameWindow *pWindow ) override;
|
||||
};
|
||||
|
||||
EXPOSE_INTERFACE(CMaterialSystem, IMaterialSystem, MATERIAL_SYSTEM_INTERFACE_NAME)
|
||||
|
||||
extern IRenderContext *g_pVkRenderContext;
|
||||
IRenderContext *g_pRenderContext;
|
||||
|
||||
@@ -22,14 +27,14 @@ void CMaterialSystem::Frame( float fTime )
|
||||
g_pRenderContext->Frame(fTime);
|
||||
}
|
||||
|
||||
void CMaterialSystem::RenderGameWindow( IGameWindow *pWindow )
|
||||
{
|
||||
g_pRenderContext->RenderGameWindow( pWindow );
|
||||
}
|
||||
|
||||
void CMaterialSystem::Shutdown()
|
||||
{
|
||||
g_pRenderContext->Shutdown();
|
||||
}
|
||||
|
||||
|
||||
IMaterialSystem *Materials( void )
|
||||
{
|
||||
static CMaterialSystem s_materialSystem;
|
||||
return &s_materialSystem;
|
||||
}
|
||||
IMaterialSystem *g_pMaterialSystem;
|
||||
|
||||
Reference in New Issue
Block a user