[Scummvm-git-logs] scummvm master -> 9048f3a337552c5b830d4674104f77aa3e6b789e

aquadran noreply at scummvm.org
Sat Oct 19 22:18:15 UTC 2024


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:
9048f3a337 WINTERMUTE: Use DX for BaseRenderOpenGL3D::setWorldTransform()


Commit: 9048f3a337552c5b830d4674104f77aa3e6b789e
    https://github.com/scummvm/scummvm/commit/9048f3a337552c5b830d4674104f77aa3e6b789e
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2024-10-20T00:18:11+02:00

Commit Message:
WINTERMUTE: Use DX for BaseRenderOpenGL3D::setWorldTransform()

Changed paths:
    engines/wintermute/base/gfx/opengl/base_render_opengl3d.cpp


diff --git a/engines/wintermute/base/gfx/opengl/base_render_opengl3d.cpp b/engines/wintermute/base/gfx/opengl/base_render_opengl3d.cpp
index bf766aa7d27..945bba73738 100644
--- a/engines/wintermute/base/gfx/opengl/base_render_opengl3d.cpp
+++ b/engines/wintermute/base/gfx/opengl/base_render_opengl3d.cpp
@@ -388,13 +388,10 @@ bool BaseRenderOpenGL3D::setProjection2D() {
 
 bool BaseRenderOpenGL3D::setWorldTransform(const DXMatrix &transform) {
 	_worldMatrix = transform;
-	Math::Matrix4 tmp;
-	tmp.setData(transform);
-	tmp.transpose();
-	Math::Matrix4 viewMatrix;
-	viewMatrix.setData(_viewMatrix);
-	Math::Matrix4 newModelViewTransform = tmp * viewMatrix;
-	glLoadMatrixf(newModelViewTransform.getData());
+	DXMatrix newModelViewTransform, world = transform;
+	DXMatrixTranspose(&world, &world);
+	DXMatrixMultiply(&newModelViewTransform, &world, &_viewMatrix);
+	glLoadMatrixf(newModelViewTransform);
 	return true;
 }
 




More information about the Scummvm-git-logs mailing list