From effe6a2ed60f9fedd081e0086cd0359b4bf8c65b Mon Sep 17 00:00:00 2001 From: George ElKoura Date: Mon, 24 Aug 2015 13:29:52 -0700 Subject: [PATCH] Fixed small bug in glFVarViewer for Loop. - Make sure to pass in the LOOP define to the shader when dealing with Loop surfaces. --- documentation/release_notes.rst | 6 ++++++ examples/glFVarViewer/glFVarViewer.cpp | 3 +++ 2 files changed, 9 insertions(+) diff --git a/documentation/release_notes.rst b/documentation/release_notes.rst index 291558d6..c0b65994 100644 --- a/documentation/release_notes.rst +++ b/documentation/release_notes.rst @@ -31,6 +31,12 @@ ---- +Release 3.0.3 +============= + +**Bug Fixes** + - Fixed bug in display of Loop surfaces in glFVarViewer. + Release 3.0.2 ============= diff --git a/examples/glFVarViewer/glFVarViewer.cpp b/examples/glFVarViewer/glFVarViewer.cpp index 1d01cc6f..4ea9e78e 100644 --- a/examples/glFVarViewer/glFVarViewer.cpp +++ b/examples/glFVarViewer/glFVarViewer.cpp @@ -501,6 +501,9 @@ public: if (type == Far::PatchDescriptor::QUADS) { ss << "#define PRIM_QUAD\n"; + } else if (type == Far::PatchDescriptor::TRIANGLES) { + ss << "#define PRIM_TRI\n"; + ss << "#define LOOP\n"; } else { ss << "#define PRIM_TRI\n"; }