mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 00:13:53 +02:00
Fixed WebGL rendering
This commit is contained in:
parent
af95d7f892
commit
b0c91547b4
1 changed files with 11 additions and 1 deletions
|
@ -216,7 +216,17 @@ int main(int argc, const char* argv[]) {
|
|||
SandboxUtils::runLocalSandbox(serverContentPath, true, noUpdater);
|
||||
}
|
||||
|
||||
Application app(argc, const_cast<char**>(argv), startupTime, runningMarkerExisted);
|
||||
// to enable WebGL rendering
|
||||
char* additionalCommandLineArg = (char*)"--ignore-gpu-blacklist";
|
||||
int newArgc = argc + 1;
|
||||
char** newArgv = new char*[newArgc];
|
||||
for (int i = 0; i < argc; ++i) {
|
||||
newArgv[i] = (char*)argv[i];
|
||||
}
|
||||
newArgv[argc] = additionalCommandLineArg;
|
||||
|
||||
Application app(newArgc, const_cast<char**>(newArgv), startupTime, runningMarkerExisted);
|
||||
delete[] newArgv;
|
||||
|
||||
// If we failed the OpenGLVersion check, log it.
|
||||
if (override) {
|
||||
|
|
Loading…
Reference in a new issue