[Scummvm-git-logs] scummvm master -> d04aa8222cb55fdab35dc40aa6ee170c35d7ec77
aquadran
noreply at scummvm.org
Wed Oct 23 06:03:42 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:
d04aa8222c WINTERMUTE: Small cleanup in renderer
Commit: d04aa8222cb55fdab35dc40aa6ee170c35d7ec77
https://github.com/scummvm/scummvm/commit/d04aa8222cb55fdab35dc40aa6ee170c35d7ec77
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2024-10-23T08:03:38+02:00
Commit Message:
WINTERMUTE: Small cleanup in renderer
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 5931ea29159..541cc301615 100644
--- a/engines/wintermute/base/gfx/opengl/base_render_opengl3d.cpp
+++ b/engines/wintermute/base/gfx/opengl/base_render_opengl3d.cpp
@@ -372,13 +372,13 @@ bool BaseRenderOpenGL3D::setWorldTransform(const DXMatrix &transform) {
_worldMatrix = transform;
DXMatrix newModelViewTransform, world = transform;
DXMatrixMultiply(&newModelViewTransform, &world, &_viewMatrix);
+ glMatrixMode(GL_MODELVIEW);
glLoadMatrixf(newModelViewTransform);
return true;
}
bool BaseRenderOpenGL3D::setViewTransform(const DXMatrix &transform) {
_viewMatrix = transform;
- glLoadMatrixf(transform);
return true;
}
@@ -386,8 +386,6 @@ bool BaseRenderOpenGL3D::setProjectionTransform(const DXMatrix &transform) {
_projectionMatrix = transform;
glMatrixMode(GL_PROJECTION);
glLoadMatrixf(transform);
-
- glMatrixMode(GL_MODELVIEW);
return true;
}
More information about the Scummvm-git-logs
mailing list