ANDROID: Better debug of which graphic backend is used

This commit is contained in:
Le Philousophe 2021-08-30 18:49:54 +02:00 committed by Paweł Kołodziejski
parent 5d56c1cdf0
commit 5248999c95
3 changed files with 8 additions and 7 deletions

View file

@ -708,15 +708,16 @@ bool OSystem_Android::setGraphicsMode(int mode, uint flags) {
// If the new mode and the current mode are not from the same graphics
// manager, delete and create the new mode graphics manager
debug(5, "requesting 3D: %d, supporting 3D: %d", render3d, supports3D);
if (render3d && !supports3D) {
debug(1, "switching to 3D graphics");
debug(5, "switching to 3D graphics");
delete _graphicsManager;
AndroidGraphics3dManager *manager = new AndroidGraphics3dManager();
_graphicsManager = manager;
androidGraphicsManager = manager;
switchedManager = true;
} else if (!render3d && supports3D) {
debug(1, "switching to 2D graphics");
debug(5, "switching to 2D graphics");
delete _graphicsManager;
AndroidGraphicsManager *manager = new AndroidGraphicsManager();
_graphicsManager = manager;