Skip to content

Commit a3fccd5

Browse files
committed
change default graphic values for opengl es
1 parent 387f074 commit a3fccd5

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

code/graphics/2d.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,11 @@ void removeResolutionVROption()
525525
options::OptionsManager::instance()->removeOption(ResolutionVROption);
526526
}
527527

528+
#ifndef USE_OPENGL_ES
528529
bool Gr_enable_soft_particles = true;
530+
#else
531+
bool Gr_enable_soft_particles = false;
532+
#endif
529533

530534
static void parse_soft_particle_func() {
531535
bool value;
@@ -696,7 +700,11 @@ static void parse_post_processing_func()
696700
Gr_post_processing_enabled = value;
697701
}
698702

703+
#ifndef USE_OPENGL_ES
699704
bool Gr_post_processing_enabled = true;
705+
#else
706+
bool Gr_post_processing_enabled = false;
707+
#endif
700708

701709
static auto PostProcessOption __UNUSED = options::OptionBuilder<bool>("Graphics.PostProcessing",
702710
std::pair<const char*, int>{"Post processing", 1726},

code/lighting/lighting.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,11 @@ DCF(light,"Changes lighting parameters")
102102
}
103103

104104
// used by In-Game Options menu
105+
#ifndef USE_OPENGL_ES
105106
static bool DeferredLightingEnabled = true;
107+
#else
108+
static bool DeferredLightingEnabled = false;
109+
#endif
106110

107111
static void parse_deferred_lighting_func()
108112
{
@@ -122,7 +126,11 @@ static auto DeferredLightingOption = options::OptionBuilder<bool>("Graphics.Defe
122126
.parser(parse_deferred_lighting_func)
123127
.finish();
124128

129+
#ifndef USE_OPENGL_ES
125130
static bool DeferredCockpitLightingEnabled = true;
131+
#else
132+
static bool DeferredCockpitLightingEnabled = false;
133+
#endif
126134

127135
static void parse_deferredcockpit_lighting_func()
128136
{

0 commit comments

Comments
 (0)