OpenGL2Compositing enum was replaced with OpenGLCompositing.
Example data harvested from bugs.kde.org: open bugs against kwin with a comment containing supportInformation. We can see that especially detecting modern radeon gpus is not working.