OGL32CTX: Factorize UI shaders

This should fix UI disappearing after resolution change.