Skip to content

Commit

Permalink
Add a virtual destructor, otherwise Clang 6.0complains about delete b…
Browse files Browse the repository at this point in the history
…eing called on an abstract class.
  • Loading branch information
neil authored and dneto0 committed Feb 7, 2018
1 parent c7b5df4 commit 563bc6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libshaderc/include/shaderc/shaderc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ class CompileOptions {

// Handles shaderc_include_result_release_fn callbacks.
virtual void ReleaseInclude(shaderc_include_result* data) = 0;

virtual ~IncluderInterface() = default;
};

// Sets the includer instance for libshaderc to call during compilation, as
Expand Down

0 comments on commit 563bc6e

Please sign in to comment.