Skip to content

Commit ed171d2

Browse files
author
liply
authored
Merge pull request #74 from rpgtkoolmv/use_autodetect
use AutoDetectRenderer
2 parents b2b0a1a + 5d9a147 commit ed171d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

js/rpg_managers/SceneManager.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,10 @@ SceneManager.initGraphics = function() {
6868
SceneManager.preferableRendererType = function() {
6969
if (Utils.isOptionValid('canvas')) {
7070
return 'canvas';
71-
} else {
71+
} else if (Utils.isOptionValid('webgl')) {
7272
return 'webgl';
73+
} else {
74+
return 'auto';
7375
}
7476
};
7577

0 commit comments

Comments
 (0)