diff options
author | bunnei <bunneidev@gmail.com> | 2016-01-29 05:29:33 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-02-05 23:20:23 +0100 |
commit | 8e9318f20a6fbcd511cf0f1b06b041ea1663467f (patch) | |
tree | 2e29464e732db4643198d37d338bddba58ac7520 /src/video_core/renderer_opengl/gl_rasterizer.h | |
parent | pica_types: Fix typo in docstring. (diff) | |
download | yuzu-8e9318f20a6fbcd511cf0f1b06b041ea1663467f.tar yuzu-8e9318f20a6fbcd511cf0f1b06b041ea1663467f.tar.gz yuzu-8e9318f20a6fbcd511cf0f1b06b041ea1663467f.tar.bz2 yuzu-8e9318f20a6fbcd511cf0f1b06b041ea1663467f.tar.lz yuzu-8e9318f20a6fbcd511cf0f1b06b041ea1663467f.tar.xz yuzu-8e9318f20a6fbcd511cf0f1b06b041ea1663467f.tar.zst yuzu-8e9318f20a6fbcd511cf0f1b06b041ea1663467f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h index b9c1d61bd..99266854c 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.h +++ b/src/video_core/renderer_opengl/gl_rasterizer.h @@ -248,7 +248,7 @@ private: /// Structure that the hardware rendered vertices are composed of struct HardwareVertex { - HardwareVertex(const Pica::Shader::OutputVertex& v) { + HardwareVertex(const Pica::Shader::OutputVertex& v, bool flip_quaternion) { position[0] = v.pos.x.ToFloat32(); position[1] = v.pos.y.ToFloat32(); position[2] = v.pos.z.ToFloat32(); @@ -270,6 +270,12 @@ private: view[0] = v.view.x.ToFloat32(); view[1] = v.view.y.ToFloat32(); view[2] = v.view.z.ToFloat32(); + + if (flip_quaternion) { + for (float& x : normquat) { + x = -x; + } + } } GLfloat position[4]; |