From 597a6b34cb146c9b3488af5006386c3a18109446 Mon Sep 17 00:00:00 2001 From: NeoBrainX Date: Sun, 23 Jun 2013 19:28:36 +0200 Subject: [PATCH] Compactify VertexShader uid struct. --- .../Core/VideoCommon/Src/VertexShaderGen.cpp | 8 ++++---- Source/Core/VideoCommon/Src/VertexShaderGen.h | 20 +++++++++---------- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/Source/Core/VideoCommon/Src/VertexShaderGen.cpp b/Source/Core/VideoCommon/Src/VertexShaderGen.cpp index 8c157dc030..a7e3a3d923 100644 --- a/Source/Core/VideoCommon/Src/VertexShaderGen.cpp +++ b/Source/Core/VideoCommon/Src/VertexShaderGen.cpp @@ -376,7 +376,7 @@ static void GenerateVertexShader(T& out, u32 components, API_TYPE api_type) break; case XF_TEXGEN_REGULAR: default: - uid_data.texMtxInfo[i].projection = xfregs.texMtxInfo[i].projection; + uid_data.texMtxInfo_n_projection |= xfregs.texMtxInfo[i].projection << i; if (components & (VB_HAS_TEXMTXIDX0<