diff --git a/radiant/ui/materials/editor/MaterialEditor.cpp b/radiant/ui/materials/editor/MaterialEditor.cpp index 848ff75844..4c20f6c7d9 100644 --- a/radiant/ui/materials/editor/MaterialEditor.cpp +++ b/radiant/ui/materials/editor/MaterialEditor.cpp @@ -271,7 +271,12 @@ void MaterialEditor::setupPreviewLightProperties(wxWindow* previewPanel) _preview->setLightClassname(ev.GetString().ToStdString()); }); - getControl("MaterialPreviewLightColour")->Bind(wxEVT_COLOURPICKER_CURRENT_CHANGED, +#if defined(__WXMSW__) && wxCHECK_VERSION(3,1,3) + const auto& colourEvtType = wxEVT_COLOURPICKER_CURRENT_CHANGED; +#else + const auto& colourEvtType = wxEVT_COLOURPICKER_CHANGED; +#endif + getControl("MaterialPreviewLightColour")->Bind(colourEvtType, [this](wxColourPickerEvent& ev) { if (_lightUpdateInProgress) return; diff --git a/radiantcore/rendersystem/backend/glprogram/GLSLDepthFillAlphaProgram.cpp b/radiantcore/rendersystem/backend/glprogram/GLSLDepthFillAlphaProgram.cpp index 2078b80d1f..01d1e7a582 100644 --- a/radiantcore/rendersystem/backend/glprogram/GLSLDepthFillAlphaProgram.cpp +++ b/radiantcore/rendersystem/backend/glprogram/GLSLDepthFillAlphaProgram.cpp @@ -1,5 +1,6 @@ #include "GLSLDepthFillAlphaProgram.h" +#include "GLProgramAttributes.h" #include "../GLProgramFactory.h" #include "debugging/gl.h"