Graphics/InstancedRenderable: Take a const reference to the matrix instead of a non-const one

Former-commit-id: 148f4367351f79994f51699a656a938c6784af8f [formerly 27ef2f23da51c156f615bb33e6b3138b44f77498] [formerly 120334bc6e2bd3fcff30fde0febc901d83cdeb9b [formerly 9f4d16e134fb009ce021f4720ffc6d410cc5bd3c]]
Former-commit-id: 55595b1a006dfa313e7f088f76ff6880971530c4 [formerly 7e3a37de6c217d1b7734be14df74c174f6e0b4d6]
Former-commit-id: 0ebdab2df6d218a51c5ee425482bff7c660fddd8
This commit is contained in:
Lynix
2016-08-05 09:09:14 +02:00
parent 3a18c4bb98
commit 1d758d370c
2 changed files with 3 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ namespace Nz
struct InstanceData
{
InstanceData(Matrix4f& referenceMatrix) :
InstanceData(const Matrix4f& referenceMatrix) :
transformMatrix(&referenceMatrix),
flags(0)
{
@@ -75,7 +75,7 @@ namespace Nz
std::vector<UInt8> data;
BoundingVolumef volume;
Matrix4f* transformMatrix;
const Matrix4f* transformMatrix;
UInt32 flags;
int renderOrder;
};