Lines Matching refs:to
387 CRStencilState *to = &(toCtx->stencil);
402 if (from->stencilTest != to->stencilTest)
404 able[to->stencilTest](GL_STENCIL_TEST);
405 from->stencilTest = to->stencilTest;
415 if (from->stencilTwoSideEXT != to->stencilTwoSideEXT)
417 able[to->stencilTwoSideEXT](GL_STENCIL_TEST_TWO_SIDE_EXT);
418 from->stencilTwoSideEXT = to->stencilTwoSideEXT;
425 if (from->clearValue != to->clearValue)
427 diff_api.ClearStencil (to->clearValue);
428 from->clearValue = to->clearValue;
433 activeFace = to->activeStencilFace;
443 : (frontMatch = CR_STATE_STENCIL_FUNC_MATCH(from, CRSTATE_STENCIL_BUFFER_ID_FRONT, to, CRSTATE_STENCIL_BUFFER_ID_FRONT)))
448 : (backMatch = CR_STATE_STENCIL_FUNC_MATCH(from, CRSTATE_STENCIL_BUFFER_ID_BACK, to, CRSTATE_STENCIL_BUFFER_ID_BACK)))
453 : (toFrontBackMatch = CR_STATE_STENCIL_FUNC_MATCH(to, CRSTATE_STENCIL_BUFFER_ID_FRONT, to, CRSTATE_STENCIL_BUFFER_ID_BACK)))
468 diff_api.StencilFunc (to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].func,
469 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].ref,
470 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].mask);
472 CR_STATE_STENCIL_FUNC_COPY(from, CRSTATE_STENCIL_BUFFER_ID_FRONT, to, CRSTATE_STENCIL_BUFFER_ID_FRONT);
473 CR_STATE_STENCIL_FUNC_COPY(from, CRSTATE_STENCIL_BUFFER_ID_BACK, to, CRSTATE_STENCIL_BUFFER_ID_FRONT);
485 diff_api.StencilFuncSeparate (GL_FRONT, to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].func,
486 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].ref,
487 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].mask);
489 CR_STATE_STENCIL_FUNC_COPY(from, CRSTATE_STENCIL_BUFFER_ID_FRONT, to, CRSTATE_STENCIL_BUFFER_ID_FRONT);
500 diff_api.StencilFuncSeparate (GL_BACK, to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].func,
501 to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].ref,
502 to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].mask);
504 CR_STATE_STENCIL_FUNC_COPY(from, CRSTATE_STENCIL_BUFFER_ID_BACK, to, CRSTATE_STENCIL_BUFFER_ID_BACK);
527 diff_api.StencilFunc (to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].func,
528 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].ref,
529 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].mask);
531 CR_STATE_STENCIL_FUNC_COPY(from, CRSTATE_STENCIL_BUFFER_ID_FRONT, to, CRSTATE_STENCIL_BUFFER_ID_FRONT);
532 CR_STATE_STENCIL_FUNC_COPY(from, CRSTATE_STENCIL_BUFFER_ID_BACK, to, CRSTATE_STENCIL_BUFFER_ID_FRONT);
548 diff_api.StencilFuncSeparate (GL_FRONT, to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].func,
549 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].ref,
550 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].mask);
552 CR_STATE_STENCIL_FUNC_COPY(from, CRSTATE_STENCIL_BUFFER_ID_FRONT, to, CRSTATE_STENCIL_BUFFER_ID_FRONT);
566 diff_api.StencilFuncSeparate (GL_BACK, to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].func,
567 to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].ref,
568 to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].mask);
569 CR_STATE_STENCIL_FUNC_COPY(from, CRSTATE_STENCIL_BUFFER_ID_BACK, to, CRSTATE_STENCIL_BUFFER_ID_BACK);
592 diff_api.StencilFunc (to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].func,
593 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].ref,
594 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].mask);
596 CR_STATE_STENCIL_FUNC_COPY(from, CRSTATE_STENCIL_BUFFER_ID_FRONT, to, CRSTATE_STENCIL_BUFFER_ID_FRONT);
597 CR_STATE_STENCIL_FUNC_COPY(from, CRSTATE_STENCIL_BUFFER_ID_BACK, to, CRSTATE_STENCIL_BUFFER_ID_FRONT);
613 diff_api.StencilFuncSeparate (GL_FRONT, to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].func,
614 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].ref,
615 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].mask);
617 CR_STATE_STENCIL_FUNC_COPY(from, CRSTATE_STENCIL_BUFFER_ID_FRONT, to, CRSTATE_STENCIL_BUFFER_ID_FRONT);
631 diff_api.StencilFuncSeparate (GL_BACK, to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].func,
632 to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].ref,
633 to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].mask);
634 CR_STATE_STENCIL_FUNC_COPY(from, CRSTATE_STENCIL_BUFFER_ID_BACK, to, CRSTATE_STENCIL_BUFFER_ID_BACK);
644 if (!CR_STATE_STENCIL_FUNC_MATCH(from, CRSTATE_STENCIL_BUFFER_ID_TWO_SIDE_BACK, to, CRSTATE_STENCIL_BUFFER_ID_TWO_SIDE_BACK))
652 diff_api.StencilFunc (to->buffers[CRSTATE_STENCIL_BUFFER_ID_TWO_SIDE_BACK].func,
653 to->buffers[CRSTATE_STENCIL_BUFFER_ID_TWO_SIDE_BACK].ref,
654 to->buffers[CRSTATE_STENCIL_BUFFER_ID_TWO_SIDE_BACK].mask);
655 CR_STATE_STENCIL_FUNC_COPY(from, CRSTATE_STENCIL_BUFFER_ID_TWO_SIDE_BACK, to, CRSTATE_STENCIL_BUFFER_ID_TWO_SIDE_BACK);
674 : (frontMatch = CR_STATE_STENCIL_OP_MATCH(from, CRSTATE_STENCIL_BUFFER_ID_FRONT, to, CRSTATE_STENCIL_BUFFER_ID_FRONT)))
679 : (backMatch = CR_STATE_STENCIL_OP_MATCH(from, CRSTATE_STENCIL_BUFFER_ID_BACK, to, CRSTATE_STENCIL_BUFFER_ID_BACK)))
684 : (toFrontBackMatch = CR_STATE_STENCIL_OP_MATCH(to, CRSTATE_STENCIL_BUFFER_ID_FRONT, to, CRSTATE_STENCIL_BUFFER_ID_BACK)))
699 diff_api.StencilOp (to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].fail,
700 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].passDepthFail,
701 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].passDepthPass);
703 CR_STATE_STENCIL_OP_COPY(from, CRSTATE_STENCIL_BUFFER_ID_FRONT, to, CRSTATE_STENCIL_BUFFER_ID_FRONT);
704 CR_STATE_STENCIL_OP_COPY(from, CRSTATE_STENCIL_BUFFER_ID_BACK, to, CRSTATE_STENCIL_BUFFER_ID_FRONT);
717 diff_api.StencilOpSeparate (GL_FRONT, to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].fail,
718 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].passDepthFail,
719 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].passDepthPass);
720 CR_STATE_STENCIL_OP_COPY(from, CRSTATE_STENCIL_BUFFER_ID_FRONT, to, CRSTATE_STENCIL_BUFFER_ID_FRONT);
731 diff_api.StencilOpSeparate (GL_BACK, to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].fail,
732 to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].passDepthFail,
733 to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].passDepthPass);
734 CR_STATE_STENCIL_OP_COPY(from, CRSTATE_STENCIL_BUFFER_ID_BACK, to, CRSTATE_STENCIL_BUFFER_ID_BACK);
756 diff_api.StencilOp (to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].fail,
757 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].passDepthFail,
758 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].passDepthPass);
760 CR_STATE_STENCIL_OP_COPY(from, CRSTATE_STENCIL_BUFFER_ID_FRONT, to, CRSTATE_STENCIL_BUFFER_ID_FRONT);
761 CR_STATE_STENCIL_OP_COPY(from, CRSTATE_STENCIL_BUFFER_ID_BACK, to, CRSTATE_STENCIL_BUFFER_ID_FRONT);
777 diff_api.StencilOpSeparate (GL_FRONT, to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].fail,
778 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].passDepthFail,
779 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].passDepthPass);
781 CR_STATE_STENCIL_OP_COPY(from, CRSTATE_STENCIL_BUFFER_ID_FRONT, to, CRSTATE_STENCIL_BUFFER_ID_FRONT);
796 diff_api.StencilOpSeparate (GL_BACK, to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].fail,
797 to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].passDepthFail,
798 to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].passDepthPass);
799 CR_STATE_STENCIL_OP_COPY(from, CRSTATE_STENCIL_BUFFER_ID_BACK, to, CRSTATE_STENCIL_BUFFER_ID_BACK);
822 diff_api.StencilOp (to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].fail,
823 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].passDepthFail,
824 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].passDepthPass);
826 CR_STATE_STENCIL_OP_COPY(from, CRSTATE_STENCIL_BUFFER_ID_FRONT, to, CRSTATE_STENCIL_BUFFER_ID_FRONT);
827 CR_STATE_STENCIL_OP_COPY(from, CRSTATE_STENCIL_BUFFER_ID_BACK, to, CRSTATE_STENCIL_BUFFER_ID_FRONT);
843 diff_api.StencilOpSeparate (GL_FRONT, to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].fail,
844 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].passDepthFail,
845 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].passDepthPass);
847 CR_STATE_STENCIL_OP_COPY(from, CRSTATE_STENCIL_BUFFER_ID_FRONT, to, CRSTATE_STENCIL_BUFFER_ID_FRONT);
862 diff_api.StencilOpSeparate (GL_BACK, to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].fail,
863 to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].passDepthFail,
864 to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].passDepthPass);
865 CR_STATE_STENCIL_OP_COPY(from, CRSTATE_STENCIL_BUFFER_ID_BACK, to, CRSTATE_STENCIL_BUFFER_ID_BACK);
875 if (!CR_STATE_STENCIL_OP_MATCH(from, CRSTATE_STENCIL_BUFFER_ID_TWO_SIDE_BACK, to, CRSTATE_STENCIL_BUFFER_ID_TWO_SIDE_BACK))
883 diff_api.StencilOp (to->buffers[CRSTATE_STENCIL_BUFFER_ID_TWO_SIDE_BACK].fail,
884 to->buffers[CRSTATE_STENCIL_BUFFER_ID_TWO_SIDE_BACK].passDepthFail,
885 to->buffers[CRSTATE_STENCIL_BUFFER_ID_TWO_SIDE_BACK].passDepthPass);
886 CR_STATE_STENCIL_OP_COPY(from, CRSTATE_STENCIL_BUFFER_ID_TWO_SIDE_BACK, to, CRSTATE_STENCIL_BUFFER_ID_TWO_SIDE_BACK);
896 if (activeFace != to->activeStencilFace)
903 if (from->activeStencilFace != to->activeStencilFace)
906 /* diff_api.ActiveStencilFaceEXT(to->activeStencilFace); */
907 from->activeStencilFace = to->activeStencilFace;
914 if (from->writeMask != to->writeMask)
916 diff_api.StencilMask (to->writeMask);
917 from->writeMask = to->writeMask;
928 CRStencilState *to = &(toCtx->stencil);
943 if (from->stencilTest != to->stencilTest)
945 CRSTATE_CHECKGLERR(able[to->stencilTest](GL_STENCIL_TEST));
956 if (from->stencilTwoSideEXT != to->stencilTwoSideEXT)
958 CRSTATE_CHECKGLERR(able[to->stencilTwoSideEXT](GL_STENCIL_TEST_TWO_SIDE_EXT));
966 if (from->clearValue != to->clearValue)
968 CRSTATE_CHECKGLERR(diff_api.ClearStencil (to->clearValue));
984 : (frontMatch = CR_STATE_STENCIL_FUNC_MATCH(from, CRSTATE_STENCIL_BUFFER_ID_FRONT, to, CRSTATE_STENCIL_BUFFER_ID_FRONT)))
989 : (backMatch = CR_STATE_STENCIL_FUNC_MATCH(from, CRSTATE_STENCIL_BUFFER_ID_BACK, to, CRSTATE_STENCIL_BUFFER_ID_BACK)))
994 : (toFrontBackMatch = CR_STATE_STENCIL_FUNC_MATCH(to, CRSTATE_STENCIL_BUFFER_ID_FRONT, to, CRSTATE_STENCIL_BUFFER_ID_BACK)))
1009 CRSTATE_CHECKGLERR(diff_api.StencilFunc (to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].func,
1010 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].ref,
1011 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].mask));
1024 CRSTATE_CHECKGLERR(diff_api.StencilFuncSeparate (GL_FRONT, to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].func,
1025 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].ref,
1026 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].mask));
1037 CRSTATE_CHECKGLERR(diff_api.StencilFuncSeparate (GL_BACK, to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].func,
1038 to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].ref,
1039 to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].mask));
1063 CRSTATE_CHECKGLERR(diff_api.StencilFunc (to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].func,
1064 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].ref,
1065 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].mask));
1081 CRSTATE_CHECKGLERR(diff_api.StencilFuncSeparate (GL_FRONT, to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].func,
1082 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].ref,
1083 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].mask));
1097 CRSTATE_CHECKGLERR(diff_api.StencilFuncSeparate (GL_BACK, to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].func,
1098 to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].ref,
1099 to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].mask));
1124 CRSTATE_CHECKGLERR(diff_api.StencilFunc (to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].func,
1125 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].ref,
1126 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].mask));
1142 CRSTATE_CHECKGLERR(diff_api.StencilFuncSeparate (GL_FRONT, to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].func,
1143 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].ref,
1144 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].mask));
1158 CRSTATE_CHECKGLERR(diff_api.StencilFuncSeparate (GL_BACK, to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].func,
1159 to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].ref,
1160 to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].mask));
1172 if (!CR_STATE_STENCIL_FUNC_MATCH(from, CRSTATE_STENCIL_BUFFER_ID_TWO_SIDE_BACK, to, CRSTATE_STENCIL_BUFFER_ID_TWO_SIDE_BACK))
1180 CRSTATE_CHECKGLERR(diff_api.StencilFunc (to->buffers[CRSTATE_STENCIL_BUFFER_ID_TWO_SIDE_BACK].func,
1181 to->buffers[CRSTATE_STENCIL_BUFFER_ID_TWO_SIDE_BACK].ref,
1182 to->buffers[CRSTATE_STENCIL_BUFFER_ID_TWO_SIDE_BACK].mask));
1204 : (frontMatch = CR_STATE_STENCIL_OP_MATCH(from, CRSTATE_STENCIL_BUFFER_ID_FRONT, to, CRSTATE_STENCIL_BUFFER_ID_FRONT)))
1209 : (backMatch = CR_STATE_STENCIL_OP_MATCH(from, CRSTATE_STENCIL_BUFFER_ID_BACK, to, CRSTATE_STENCIL_BUFFER_ID_BACK)))
1214 : (toFrontBackMatch = CR_STATE_STENCIL_OP_MATCH(to, CRSTATE_STENCIL_BUFFER_ID_FRONT, to, CRSTATE_STENCIL_BUFFER_ID_BACK)))
1229 CRSTATE_CHECKGLERR(diff_api.StencilOp (to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].fail,
1230 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].passDepthFail,
1231 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].passDepthPass));
1244 CRSTATE_CHECKGLERR(diff_api.StencilOpSeparate (GL_FRONT, to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].fail,
1245 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].passDepthFail,
1246 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].passDepthPass));
1257 CRSTATE_CHECKGLERR(diff_api.StencilOpSeparate (GL_BACK, to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].fail,
1258 to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].passDepthFail,
1259 to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].passDepthPass));
1283 CRSTATE_CHECKGLERR(diff_api.StencilOp (to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].fail,
1284 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].passDepthFail,
1285 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].passDepthPass));
1301 CRSTATE_CHECKGLERR(diff_api.StencilOpSeparate (GL_FRONT, to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].fail,
1302 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].passDepthFail,
1303 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].passDepthPass));
1317 CRSTATE_CHECKGLERR(diff_api.StencilOpSeparate (GL_BACK, to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].fail,
1318 to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].passDepthFail,
1319 to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].passDepthPass));
1345 CRSTATE_CHECKGLERR(diff_api.StencilOp (to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].fail,
1346 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].passDepthFail,
1347 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].passDepthPass));
1363 CRSTATE_CHECKGLERR(diff_api.StencilOpSeparate (GL_FRONT, to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].fail,
1364 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].passDepthFail,
1365 to->buffers[CRSTATE_STENCIL_BUFFER_ID_FRONT].passDepthPass));
1379 CRSTATE_CHECKGLERR(diff_api.StencilOpSeparate (GL_BACK, to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].fail,
1380 to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].passDepthFail,
1381 to->buffers[CRSTATE_STENCIL_BUFFER_ID_BACK].passDepthPass));
1394 if (!CR_STATE_STENCIL_OP_MATCH(from, CRSTATE_STENCIL_BUFFER_ID_TWO_SIDE_BACK, to, CRSTATE_STENCIL_BUFFER_ID_TWO_SIDE_BACK))
1402 CRSTATE_CHECKGLERR(diff_api.StencilOp (to->buffers[CRSTATE_STENCIL_BUFFER_ID_TWO_SIDE_BACK].fail,
1403 to->buffers[CRSTATE_STENCIL_BUFFER_ID_TWO_SIDE_BACK].passDepthFail,
1404 to->buffers[CRSTATE_STENCIL_BUFFER_ID_TWO_SIDE_BACK].passDepthPass));
1416 if (activeFace != to->activeStencilFace)
1423 if (from->activeStencilFace != to->activeStencilFace)
1426 /* diff_api.ActiveStencilFaceEXT(to->activeStencilFace); */
1435 if (from->writeMask != to->writeMask)
1437 CRSTATE_CHECKGLERR(diff_api.StencilMask (to->writeMask));