diff --git a/plugins/zzogl-pg/opengl/ZZoglCreate.cpp b/plugins/zzogl-pg/opengl/ZZoglCreate.cpp index a142878d53..5de08ab18c 100644 --- a/plugins/zzogl-pg/opengl/ZZoglCreate.cpp +++ b/plugins/zzogl-pg/opengl/ZZoglCreate.cpp @@ -304,7 +304,8 @@ __forceinline bool LoadShadersFromDat() #ifdef PLUGIN_DIR_COMPILATION #define xPLUGIN_DIR_str(s) PLUGIN_DIR_str(s) #define PLUGIN_DIR_str(s) #s - fres = fopen( xPLUGIN_DIR_str(PLUGIN_DIR_COMPILATION), "rb"); + const std::string shader_file = string(xPLUGIN_DIR_str(PLUGIN_DIR_COMPILATION)) + "/ps2hw.dat"; + fres = fopen(shader_file.c_str(), "rb"); #endif if (fres == NULL) {