If one logs in via hardware that supports OpenGL compositing, it is possible to set the System Settings / Desktop Effects / Advanced / Compositing Type to OpenGL and enjoy the benefits thereof. However, if one then logs out and logs in again via different hardware (e.g., xdmcp remote) that does not support OpenGL, the compositing type is reset to XRender so that if one then returns to the first hardware, the setting of OpenGL is lost. Solution: don't have KDE overriding values that the user has specified. If it is considered desirable, warn via a dialog, but provide the option not to override. I.e., the dialog should ask "This setup doesn't support OpenGL; do you want to fall back to XRender ? Y/N" with the tick-box "don't ask this question again".
I'm sorry to say, but this is an intended behavior. The thought is that you don't end up on an unusable system because it uses unsupported OpenGL. We tried to get the best possible solution and switch to XRender once we notice OpenGL is broken. That way further startups don't even try to setup OpenGL just to notice that it breaks.