This commit reverts part of f73f8ee84 which introduced an issue when resizing a subcomponent with an attached OpenGLContext. More details of the issue can be seen at https://github.com/juce-framework/JUCE/issues/914.
f73f8ee84