summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2017-08-02 21:07:15 +0200
committerwwylele <wwylele@gmail.com>2017-08-02 21:07:15 +0200
commit48b410587116c92339d936ed3b1fd00aba38d6b5 (patch)
tree41a911a6f4bca31d3ac927431095fa217cbd6000
parentSwRasterizer/Lighting: move quaternion normalization to the caller (diff)
downloadyuzu-48b410587116c92339d936ed3b1fd00aba38d6b5.tar
yuzu-48b410587116c92339d936ed3b1fd00aba38d6b5.tar.gz
yuzu-48b410587116c92339d936ed3b1fd00aba38d6b5.tar.bz2
yuzu-48b410587116c92339d936ed3b1fd00aba38d6b5.tar.lz
yuzu-48b410587116c92339d936ed3b1fd00aba38d6b5.tar.xz
yuzu-48b410587116c92339d936ed3b1fd00aba38d6b5.tar.zst
yuzu-48b410587116c92339d936ed3b1fd00aba38d6b5.zip
-rw-r--r--src/video_core/swrasterizer/rasterizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/swrasterizer/rasterizer.cpp b/src/video_core/swrasterizer/rasterizer.cpp
index 80ecf72ec..aee630954 100644
--- a/src/video_core/swrasterizer/rasterizer.cpp
+++ b/src/video_core/swrasterizer/rasterizer.cpp
@@ -118,7 +118,7 @@ static std::tuple<float24, float24, PAddr> ConvertCubeCoord(float24 u, float24 v
static float LookupLightingLut(const Pica::State::Lighting& lighting, size_t lut_index, u8 index,
float delta) {
ASSERT_MSG(lut_index < lighting.luts.size(), "Out of range lut");
- ASSERT_MSG(index < lighting.luts[0].size(), "Out of range index");
+ ASSERT_MSG(index < lighting.luts[lut_index].size(), "Out of range index");
const auto& lut = lighting.luts[lut_index][index];