summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/shader.cpp
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2017-02-11 05:51:09 +0100
committerGitHub <noreply@github.com>2017-02-11 05:51:09 +0100
commite2fa1ca5e102bc4187d494dc11f202d93495de59 (patch)
tree16c2ba1fddc3cb6cd6548d08dc65aa56b3b5da09 /src/video_core/shader/shader.cpp
parentMerge pull request #2482 from yuriks/pica-refactor (diff)
downloadyuzu-e2fa1ca5e102bc4187d494dc11f202d93495de59.tar
yuzu-e2fa1ca5e102bc4187d494dc11f202d93495de59.tar.gz
yuzu-e2fa1ca5e102bc4187d494dc11f202d93495de59.tar.bz2
yuzu-e2fa1ca5e102bc4187d494dc11f202d93495de59.tar.lz
yuzu-e2fa1ca5e102bc4187d494dc11f202d93495de59.tar.xz
yuzu-e2fa1ca5e102bc4187d494dc11f202d93495de59.tar.zst
yuzu-e2fa1ca5e102bc4187d494dc11f202d93495de59.zip
Diffstat (limited to 'src/video_core/shader/shader.cpp')
-rw-r--r--src/video_core/shader/shader.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/shader/shader.cpp b/src/video_core/shader/shader.cpp
index c860375a1..60c5b9ad5 100644
--- a/src/video_core/shader/shader.cpp
+++ b/src/video_core/shader/shader.cpp
@@ -39,9 +39,8 @@ OutputVertex OutputVertex::FromAttributeBuffer(const RasterizerRegs& regs, Attri
for (unsigned comp = 0; comp < 4; ++comp) {
RasterizerRegs::VSOutputAttributes::Semantic semantic = semantics[comp];
- float24* out = &vertex_slots[semantic];
if (semantic < vertex_slots.size()) {
- *out = input.attr[i][comp];
+ vertex_slots[semantic] = input.attr[i][comp];
} else if (semantic != RasterizerRegs::VSOutputAttributes::INVALID) {
LOG_ERROR(HW_GPU, "Invalid/unknown semantic id: %u", (unsigned int)semantic);
}