Skip to content

Commit 54f14c8

Browse files
melvyn2ReplayCoding
authored andcommitted
Fix VGui clicks not registering
1 parent fb8897e commit 54f14c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vgui2/vgui_controls/Button.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -688,10 +688,11 @@ void Button::SetReleasedSound(const char *sound)
688688
}
689689
}
690690

691+
// NOTE(melvyn2) optimization disabled, beacause on gcc alone (not clang) this is wrongly optimized
691692
//-----------------------------------------------------------------------------
692693
// Purpose: Set button to be mouse clickable or not.
693694
//-----------------------------------------------------------------------------
694-
void Button::SetMouseClickEnabled(MouseCode code,bool state)
695+
void __attribute__((optimize("O0"))) Button::SetMouseClickEnabled(MouseCode code,bool state)
695696
{
696697
if(state)
697698
{

0 commit comments

Comments
 (0)