Graphics/InstancedRenderable: Take a const reference to the matrix instead of a non-const one
Former-commit-id: a2c84a7e8f1c3f91bb53e60eb95aec43c77bdce9 [formerly 966bf202d970596c9917805c3bb54dd04f84891f] [formerly 7372d35968df90baea6655c6439d545f454cd549 [formerly edc986573b5aa4e26805d484aa25dc98db1b99c1]] Former-commit-id: 0a81a7c0eb3bb9c3ca45060f1348f7d0e944c473 [formerly 60dda05c845ed52fc0d54976ad06f2261496b105] Former-commit-id: 6b3e85831f9631220837194f1f684f3350a93bc3
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user