Skip to content

Commit

Permalink
GLM 1.0 compatibility (elalish#721)
Browse files Browse the repository at this point in the history
Using glm/gtx/compatibility.hpp without GLM_ENABLE_EXPERIMENTAL has
become an error:

error: #error "GLM: GLM_GTX_compatibility is an experimental extension
               and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL
	       before including it, if you really want to use it."
  • Loading branch information
cjmayo authored Jan 28, 2024
1 parent 9690305 commit 0b7ee87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utilities/include/public.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.

#pragma once
#define GLM_ENABLE_EXPERIMENTAL // needed for glm/gtx/compatibility.hpp
#define GLM_FORCE_EXPLICIT_CTOR
#include <glm/ext/matrix_transform.hpp>
#include <glm/glm.hpp>
Expand Down

0 comments on commit 0b7ee87

Please sign in to comment.