CREATE_PROJECT: --disable-opengl disables all OpenGL features
This commit is contained in:
parent
1ca009ddc6
commit
f22f08059c
1 changed files with 14 additions and 6 deletions
|
@ -304,6 +304,19 @@ int main(int argc, char *argv[]) {
|
|||
j->enable = false;
|
||||
}
|
||||
|
||||
// HACK: Vorbis and Tremor can not be enabled simultaneously
|
||||
if (getFeatureBuildState("tremor", setup.features)) {
|
||||
setFeatureBuildState("vorbis", setup.features, false);
|
||||
}
|
||||
|
||||
// HACK: These features depend on OpenGL
|
||||
if (!getFeatureBuildState("opengl", setup.features)) {
|
||||
setFeatureBuildState("opengl_game", setup.features, false);
|
||||
setFeatureBuildState("opengl_shaders", setup.features, false);
|
||||
setFeatureBuildState("opengles2", setup.features, false);
|
||||
setFeatureBuildState("glew", setup.features, false);
|
||||
}
|
||||
|
||||
// Disable engines for which we are missing dependencies
|
||||
for (EngineDescList::const_iterator i = setup.engines.begin(); i != setup.engines.end(); ++i) {
|
||||
if (i->enable) {
|
||||
|
@ -318,11 +331,6 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
}
|
||||
|
||||
// HACK: Vorbis and Tremor can not be enabled simultaneously
|
||||
if (getFeatureBuildState("tremor", setup.features)) {
|
||||
setFeatureBuildState("vorbis", setup.features, false);
|
||||
}
|
||||
|
||||
// Print status
|
||||
cout << "Enabled engines:\n\n";
|
||||
for (EngineDescList::const_iterator i = setup.engines.begin(); i != setup.engines.end(); ++i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue