Avoid complex static global initialisation
Caused an assertion failure: "sal/osl/unx/process_impl.cxx:167: sal_uInt32 osl_getCommandArgCount(): Assertion `g_command_args.m_nCount != 0' failed". Change-Id: Ib01e0312e328f751c9353aab95dceb977b818b0c
This commit is contained in:
@@ -25,11 +25,9 @@ OUString getShaderFolder()
|
||||
return aUrl + "/opengl/";
|
||||
}
|
||||
|
||||
OUString maShaderFolder = getShaderFolder();
|
||||
|
||||
OString loadShader(const OUString& rFilename)
|
||||
{
|
||||
OUString aFileURL = maShaderFolder + rFilename +".glsl";
|
||||
OUString aFileURL = getShaderFolder() + rFilename +".glsl";
|
||||
osl::File aFile(aFileURL);
|
||||
if(aFile.open(osl_File_OpenFlag_Read) == osl::FileBase::E_None)
|
||||
{
|
||||
|
Reference in New Issue
Block a user