Skip to content

Commit

Permalink
#5566: Linux compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Apr 9, 2021
1 parent 945fbcb commit 30f0996
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion radiant/ui/materials/editor/MaterialEditor.cpp
Expand Up @@ -271,7 +271,12 @@ void MaterialEditor::setupPreviewLightProperties(wxWindow* previewPanel)
_preview->setLightClassname(ev.GetString().ToStdString());
});

getControl<wxColourPickerCtrl>("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<wxColourPickerCtrl>("MaterialPreviewLightColour")->Bind(colourEvtType,
[this](wxColourPickerEvent& ev)
{
if (_lightUpdateInProgress) return;
Expand Down
@@ -1,5 +1,6 @@
#include "GLSLDepthFillAlphaProgram.h"

#include "GLProgramAttributes.h"
#include "../GLProgramFactory.h"
#include "debugging/gl.h"

Expand Down

0 comments on commit 30f0996

Please sign in to comment.