From 59ac5313dbcab91d5efab2fe44e3470ddc9c6da7 Mon Sep 17 00:00:00 2001 From: Robin MILAS Date: Sat, 16 Apr 2022 17:32:42 +0200 Subject: [PATCH] Fix undefined reference --- Graphics/include/Graphics/Shader.hpp | 1 + Graphics/src/Material.cpp | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Graphics/include/Graphics/Shader.hpp b/Graphics/include/Graphics/Shader.hpp index f00138748..7bceb9f63 100644 --- a/Graphics/include/Graphics/Shader.hpp +++ b/Graphics/include/Graphics/Shader.hpp @@ -3,6 +3,7 @@ namespace Graphics { + extern const uint32 shaderStageMap[]; /* Enum of supported shader types */ enum class ShaderType { diff --git a/Graphics/src/Material.cpp b/Graphics/src/Material.cpp index e4f40543b..5495b6758 100644 --- a/Graphics/src/Material.cpp +++ b/Graphics/src/Material.cpp @@ -57,9 +57,6 @@ namespace Graphics { }; - // Defined in Shader.cpp - extern uint32 shaderStageMap[]; - class Material_Impl : public MaterialRes { public: