From d70ec6ef5b8c5cca463eb02fb8c15f0db62fdb9b Mon Sep 17 00:00:00 2001 From: Biohazard Date: Sun, 29 Sep 2013 21:31:40 +0200 Subject: [PATCH] - fixed vbsp not loading game shade libraries --- sp/src/utils/common/utilmatlib.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sp/src/utils/common/utilmatlib.cpp b/sp/src/utils/common/utilmatlib.cpp index 962bb3f59..35307c59b 100644 --- a/sp/src/utils/common/utilmatlib.cpp +++ b/sp/src/utils/common/utilmatlib.cpp @@ -52,6 +52,11 @@ void LoadMaterialSystemInterface( CreateInterfaceFn fileSystemFactory ) { Error( "Could not start the empty shader (shaderapiempty.dll)!" ); } + + // loads game shader dlls from game directory + // i.e. allows you to use custom lightmapped shaders in hammer + // the respective call to ModShutdown() has been left out on purpose because it makes vbsp crash + g_pMaterialSystem->ModInit(); } void InitMaterialSystem( const char *materialBaseDirPath, CreateInterfaceFn fileSystemFactory )