Adds check for GLES2 before modifying setModeValidity().
Base target is now 6.0.