Home | History | Annotate | Download | only in main

Lines Matching refs:stencil

2772  * Store a combined depth/stencil texture image.
2801 GLubyte *stencil = (GLubyte *) malloc(srcWidth * sizeof(GLubyte));
2803 if (!depth || !stencil) {
2805 free(stencil);
2809 /* In case we only upload depth we need to preserve the stencil */
2821 if (srcFormat == GL_DEPTH_COMPONENT) { /* preserve stencil */
2837 /* get the 8-bit stencil values */
2840 stencil, /* dst addr */
2848 dstRow[i] = (dstRow[i] & 0xFFFFFF00) | (stencil[i] & 0xFF);
2857 free(stencil);
2864 * Store a combined depth/stencil texture image.
2874 GLubyte *stencil;
2884 stencil = (GLubyte *) malloc(srcWidth * sizeof(GLubyte));
2886 if (!depth || !stencil) {
2888 free(stencil);
2903 if (srcFormat == GL_DEPTH_COMPONENT) { /* preserve stencil */
2919 /* get the 8-bit stencil values */
2922 stencil, /* dst addr */
2926 /* merge stencil values into depth values */
2931 dstRow[i] = (dstRow[i] & 0xFFFFFF) | (stencil[i] << 24);
2940 free(stencil);
2947 * Store simple 8-bit/value stencil texture data.
2970 GLubyte *stencil = (GLubyte *) malloc(srcWidth * sizeof(GLubyte));
2972 if (!stencil)
2985 /* get the 8-bit stencil values */
2988 stencil, /* dst addr */
2991 /* merge stencil values into depth values */
2993 dstRow[i] = stencil[i];
3000 free(stencil);
3849 /* In case we only upload depth we need to preserve the stencil */
3860 * only write their own dword, so the other dword (stencil
4241 * But if the user is providing depth or stencil values and the texture
4242 * image is a combined depth/stencil format, we'll actually read from
4243 * the texture buffer too (in order to insert the depth or stencil values.