From 61f478a92af35b4297dd05293a90ebe0991f8262 Mon Sep 17 00:00:00 2001 From: Biohazard Date: Sun, 29 Sep 2013 15:39:46 +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..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 )