Module: Mesa Branch: master Commit: a794ad3709a6eb26bc96934203c20a8b3b8d8672 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a794ad3709a6eb26bc96934203c20a8b3b8d8672
Author: Brian Paul <[email protected]> Date: Tue Sep 6 15:24:14 2011 -0600 mesa: fix vert_result_to_frag_attrib() parameter type --- src/mesa/main/mtypes.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 396a752..4e5cc46 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -348,7 +348,7 @@ typedef enum * (VERT_RESULT_PSIZ, VERT_RESULT_BFC0, VERT_RESULT_BFC1, and * VERT_RESULT_EDGE) are converted to a value of -1. */ -static INLINE int vert_result_to_frag_attrib(int vert_result) +static INLINE int vert_result_to_frag_attrib(gl_vert_result vert_result) { if (vert_result >= VERT_RESULT_VAR0) return vert_result - VERT_RESULT_VAR0 + FRAG_ATTRIB_VAR0; @@ -366,7 +366,7 @@ static INLINE int vert_result_to_frag_attrib(int vert_result) * gl_frag_attrib values which have no corresponding gl_vert_result * (FRAG_ATTRIB_FACE and FRAG_ATTRIB_PNTC) are converted to a value of -1. */ -static INLINE int frag_attrib_to_vert_result(int frag_attrib) +static INLINE int frag_attrib_to_vert_result(gl_frag_attrib frag_attrib) { if (frag_attrib <= FRAG_ATTRIB_TEX7) return frag_attrib; _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
