summaryrefslogtreecommitdiff
path: root/servers/rendering/rasterizer_rd/rasterizer_storage_rd.cpp
diff options
context:
space:
mode:
authorqarmin <mikrutrafal54@gmail.com>2020-04-28 18:26:57 +0200
committerqarmin <mikrutrafal54@gmail.com>2020-04-28 18:26:57 +0200
commit0e9942a671be13f78e6214c1d1fd149481cc65bd (patch)
tree88fbdaaa7f846bf48cdd1f15d1cc59667598c2df /servers/rendering/rasterizer_rd/rasterizer_storage_rd.cpp
parentabf5132a32bec9d80ce711b22476170fd18edfdc (diff)
Fix copy paste array index bug
Diffstat (limited to 'servers/rendering/rasterizer_rd/rasterizer_storage_rd.cpp')
-rw-r--r--servers/rendering/rasterizer_rd/rasterizer_storage_rd.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/servers/rendering/rasterizer_rd/rasterizer_storage_rd.cpp b/servers/rendering/rasterizer_rd/rasterizer_storage_rd.cpp
index 0689429014..d32627a076 100644
--- a/servers/rendering/rasterizer_rd/rasterizer_storage_rd.cpp
+++ b/servers/rendering/rasterizer_rd/rasterizer_storage_rd.cpp
@@ -5063,10 +5063,10 @@ void RasterizerStorageRD::_global_variable_store_in_buffer(int32_t p_index, RS::
bv[2].z = v.basis.elements[2][2];
bv[2].w = 0;
- bv[2].x = v.origin.x;
- bv[2].y = v.origin.y;
- bv[2].z = v.origin.z;
- bv[2].w = 1;
+ bv[3].x = v.origin.x;
+ bv[3].y = v.origin.y;
+ bv[3].z = v.origin.z;
+ bv[3].w = 1;
} break;
default: {