Fixed a bug where calling Texture::getMaximumSize() before any GlResource is created would break context management.