[Scummvm-git-logs] scummvm branch-2-5 -> d5adf7a46201dda153fc626cb7f39ec77e23374d

aquadran noreply at scummvm.org
Thu Dec 9 08:55:05 UTC 2021


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:
d5adf7a462 STARK: Fixed shadow rendering


Commit: d5adf7a46201dda153fc626cb7f39ec77e23374d
    https://github.com/scummvm/scummvm/commit/d5adf7a46201dda153fc626cb7f39ec77e23374d
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2021-12-09T09:54:56+01:00

Commit Message:
STARK: Fixed shadow rendering

Changed paths:
    engines/stark/gfx/openglactor.cpp


diff --git a/engines/stark/gfx/openglactor.cpp b/engines/stark/gfx/openglactor.cpp
index 8116ad4d2e..de4b008584 100644
--- a/engines/stark/gfx/openglactor.cpp
+++ b/engines/stark/gfx/openglactor.cpp
@@ -288,22 +288,14 @@ void OpenGLActorRenderer::render(const Math::Vector3d &position, float direction
 		if (!_gfx->computeLightsEnabled())
 			glDisable(GL_LIGHTING);
 
-		glMatrixMode(GL_PROJECTION);
-		glLoadMatrixf(projectionMatrix.getData());
-
-		glMatrixMode(GL_MODELVIEW);
-		glLoadMatrixf(mvp.getData());
-
 		glColor4f(0.0f, 0.0f, 0.0f, 0.5f);
 
 		for (Common::Array<Face *>::const_iterator face = faces.begin(); face != faces.end(); ++face) {
-			auto vertexIndices = _faceEBO[*face];
-
 			glEnableClientState(GL_VERTEX_ARRAY);
 
 			glVertexPointer(3, GL_FLOAT, sizeof(ActorVertex), &_faceVBO[0].sx);
 
-			glDrawElements(GL_TRIANGLES, (*face)->vertexIndices.size(), GL_UNSIGNED_INT, vertexIndices);
+			glDrawElements(GL_TRIANGLES, (*face)->vertexIndices.size(), GL_UNSIGNED_INT, _faceEBO[*face]);
 
 			glDisableClientState(GL_VERTEX_ARRAY);
 		}




More information about the Scummvm-git-logs mailing list