Fix legacy card support when using programmable pipeline (primitives)