We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14f1852 commit 538d3d8Copy full SHA for 538d3d8
src/vgui2/vgui_controls/Button.cpp
@@ -688,10 +688,15 @@ void Button::SetReleasedSound(const char *sound)
688
}
689
690
691
+// NOTE(melvyn2) optimization disabled, beacause on gcc alone (not clang) this is wrongly optimized
692
//-----------------------------------------------------------------------------
693
// Purpose: Set button to be mouse clickable or not.
694
-void Button::SetMouseClickEnabled(MouseCode code,bool state)
695
+void
696
+#ifdef LINUX
697
+__attribute__((optimize("O0")))
698
+#endif
699
+Button::SetMouseClickEnabled(MouseCode code,bool state)
700
{
701
if(state)
702
0 commit comments