diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-09-13 17:18:18 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-09-13 17:51:51 +0300 |
commit | 6b0d1ef7e118f679fb5dacac184a7e72fef6142e (patch) | |
tree | c514f73902d4b533104ff182047ffe2373691c4c /intern/cycles/subd | |
parent | 27b82bbb75c5fd527b6b22682f8d173f6040644a (diff) |
Cleanup: compiler warnings
Diffstat (limited to 'intern/cycles/subd')
-rw-r--r-- | intern/cycles/subd/subd_dice.cpp | 1 | ||||
-rw-r--r-- | intern/cycles/subd/subd_patch.h | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/subd/subd_dice.cpp b/intern/cycles/subd/subd_dice.cpp index 714ff6ed629..91c7f4bea05 100644 --- a/intern/cycles/subd/subd_dice.cpp +++ b/intern/cycles/subd/subd_dice.cpp @@ -180,6 +180,7 @@ void QuadDice::set_side(Subpatch &sub, int edge) v = 1.0f - f; break; case 3: + default: u = 1.0f - f; v = 0; break; diff --git a/intern/cycles/subd/subd_patch.h b/intern/cycles/subd/subd_patch.h index 2e3484f95e3..8fe423bc94d 100644 --- a/intern/cycles/subd/subd_patch.h +++ b/intern/cycles/subd/subd_patch.h @@ -24,6 +24,10 @@ CCL_NAMESPACE_BEGIN class Patch { public: + Patch() : patch_index(0), shader(0), from_ngon(false) + { + } + virtual ~Patch() = default; virtual void eval(float3 *P, float3 *dPdu, float3 *dPdv, float3 *N, float u, float v) = 0; |