Fix 3DButtonRepresentation widget initialization

In the HAI demo, when initializing the widget in the rendererer, it crashed
in glSelect.