[Scummvm-git-logs] scummvm master -> 89994eec8b4a5536997b117b00f4ec5349170045
aquadran
aquadran at gmail.com
Mon Oct 18 21:57:48 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:
89994eec8b STARK: Fixed compilation
Commit: 89994eec8b4a5536997b117b00f4ec5349170045
https://github.com/scummvm/scummvm/commit/89994eec8b4a5536997b117b00f4ec5349170045
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2021-10-18T23:57:44+02:00
Commit Message:
STARK: Fixed compilation
Changed paths:
engines/stark/gfx/openglactor.cpp
diff --git a/engines/stark/gfx/openglactor.cpp b/engines/stark/gfx/openglactor.cpp
index 85ec1d86e1..75352e78ce 100644
--- a/engines/stark/gfx/openglactor.cpp
+++ b/engines/stark/gfx/openglactor.cpp
@@ -355,12 +355,18 @@ ActorVertex *OpenGLActorRenderer::createModelVBO(const Model *model) {
// Build a vertex array
int i = 0;
for (Common::Array<VertNode *>::const_iterator tri = modelVertices.begin(); tri != modelVertices.end(); ++tri, i++) {
- vertices[i].pos1 = Math::Vector3d((*tri)->_pos1.x(), (*tri)->_pos1.y(), (*tri)->_pos1.z());
- vertices[i].pos2 = Math::Vector3d((*tri)->_pos2.x(), (*tri)->_pos2.y(), (*tri)->_pos2.z());
+ vertices[i].pos1x = (*tri)->_pos1.x();
+ vertices[i].pos1y = (*tri)->_pos1.y();
+ vertices[i].pos1z = (*tri)->_pos1.z();
+ vertices[i].pos2x = (*tri)->_pos2.x();
+ vertices[i].pos2y = (*tri)->_pos2.y();
+ vertices[i].pos2z = (*tri)->_pos2.z();
vertices[i].bone1 = (*tri)->_bone1;
vertices[i].bone2 = (*tri)->_bone2;
vertices[i].boneWeight = (*tri)->_boneWeight;
- vertices[i].normal = Math::Vector3d((*tri)->_normal.x(), (*tri)->_normal.y(), (*tri)->_normal.z());
+ vertices[i].normalx = (*tri)->_normal.x();
+ vertices[i].normaly = (*tri)->_normal.y();
+ vertices[i].normalz = (*tri)->_normal.z();
vertices[i].texS = -(*tri)->_texS;
vertices[i].texT = (*tri)->_texT;
}
More information about the Scummvm-git-logs
mailing list