From 578b264b711d4cd4d2989b8cb4007f59a333ed7f Mon Sep 17 00:00:00 2001 From: Biohazard Date: Mon, 30 Sep 2013 15:17:44 +0200 Subject: [PATCH] - fixed vbsp not loading game shader 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..3f905cc52 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 )