[Scummvm-git-logs] scummvm master -> 5dd7b391ced1e742a641ab42baa9d572906cdea8

aquadran noreply at scummvm.org
Sat Jun 25 22:14:51 UTC 2022


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
5dd7b391ce WINTERMUTE: WME3D: Added missing TinyGL ifdef


Commit: 5dd7b391ced1e742a641ab42baa9d572906cdea8
    https://github.com/scummvm/scummvm/commit/5dd7b391ced1e742a641ab42baa9d572906cdea8
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2022-06-26T00:14:46+02:00

Commit Message:
WINTERMUTE: WME3D: Added missing TinyGL ifdef

Changed paths:
    engines/wintermute/base/base_game.cpp


diff --git a/engines/wintermute/base/base_game.cpp b/engines/wintermute/base/base_game.cpp
index e8328866398..45b5c745190 100644
--- a/engines/wintermute/base/base_game.cpp
+++ b/engines/wintermute/base/base_game.cpp
@@ -521,29 +521,31 @@ bool BaseGame::initialize2() { // we know whether we are going to be accelerated
 #endif
 			0;
 
-	/* When playing 2D, TinyGL is not really TinyGL but software and is always available */
+#if defined(USE_TINYGL)
+	// When playing 2D, TinyGL is not really TinyGL but software and is always available
 	if (!_playing3DGame) {
 		availableRendererTypes |= Graphics::kRendererTypeTinyGL;
 	}
+#endif
 
 	Graphics::RendererType matchingRendererType = Graphics::Renderer::getBestMatchingType(desiredRendererType, availableRendererTypes);
 
- #if defined(USE_OPENGL_SHADERS)
+#if defined(USE_OPENGL_SHADERS)
 	if (matchingRendererType == Graphics::kRendererTypeOpenGLShaders) {
 		initGraphics3d(_settings->getResWidth(), _settings->getResHeight());
 		_renderer3D = makeOpenGL3DShaderRenderer(this);
 	}
- #endif // defined(USE_OPENGL_SHADERS)
- #if defined(USE_OPENGL_GAME)
+#endif // defined(USE_OPENGL_SHADERS)
+#if defined(USE_OPENGL_GAME)
 	if (matchingRendererType == Graphics::kRendererTypeOpenGL) {
 		initGraphics3d(_settings->getResWidth(), _settings->getResHeight());
 		_renderer3D = makeOpenGL3DRenderer(this);
 	}
- #endif // defined(USE_OPENGL)
+#endif // defined(USE_OPENGL)
 	if (matchingRendererType == Graphics::kRendererTypeTinyGL) {
 		if (_playing3DGame) {
 			_renderer3D = nullptr;// TODO: makeTinyGL3DRenderer(this);
-			error("3D software renderered is not supported yet");
+			warning("3D software renderer is not supported yet");
 		}
 	}
 	_renderer = _renderer3D;




More information about the Scummvm-git-logs mailing list