mirror of
https://github.com/MobileGL-Dev/MobileGlues.git
synced 2025-09-21 18:22:19 -04:00
[Improvement] (settings.cpp): Change the logic of loading maxGlslCacheSize config, fixing a plugin error.
Signed-off-by: BZLZHH <admin@bzlzhh.top>
This commit is contained in:
parent
9575e7d7ca
commit
2512c18506
@ -25,7 +25,9 @@ void init_settings() {
|
|||||||
int enableNoError = success ? config_get_int("enableNoError") : 0;
|
int enableNoError = success ? config_get_int("enableNoError") : 0;
|
||||||
int enableExtGL43 = success ? config_get_int("enableExtGL43") : 0;
|
int enableExtGL43 = success ? config_get_int("enableExtGL43") : 0;
|
||||||
int enableExtComputeShader = success ? config_get_int("enableExtComputeShader") : 0;
|
int enableExtComputeShader = success ? config_get_int("enableExtComputeShader") : 0;
|
||||||
int maxGlslCacheSize = success ? config_get_int("maxGlslCacheSize") * 1024 * 1024 : 0;
|
size_t maxGlslCacheSize = 0;
|
||||||
|
if (config_get_int("maxGlslCacheSize") > 0)
|
||||||
|
maxGlslCacheSize = success ? config_get_int("maxGlslCacheSize") * 1024 * 1024 : 0;
|
||||||
|
|
||||||
if (enableANGLE < 0 || enableANGLE > 3)
|
if (enableANGLE < 0 || enableANGLE > 3)
|
||||||
enableANGLE = 0;
|
enableANGLE = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user