consistency
This commit is contained in:
parent
164e207304
commit
3f8c124e1e
4
src/external/rlsw.h
vendored
4
src/external/rlsw.h
vendored
|
|
@ -3143,7 +3143,7 @@ static inline void FUNC_NAME(const sw_vertex_t *v0, const sw_vertex_t *v1) \
|
||||||
if (ENABLE_DEPTH_TEST) \
|
if (ENABLE_DEPTH_TEST) \
|
||||||
{ \
|
{ \
|
||||||
float depth = sw_framebuffer_read_depth(dptr); \
|
float depth = sw_framebuffer_read_depth(dptr); \
|
||||||
if (z > depth) goto skip; \
|
if (z > depth) goto discard; \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
sw_framebuffer_write_depth(dptr, z); \
|
sw_framebuffer_write_depth(dptr, z); \
|
||||||
|
|
@ -3160,7 +3160,7 @@ static inline void FUNC_NAME(const sw_vertex_t *v0, const sw_vertex_t *v1) \
|
||||||
} \
|
} \
|
||||||
else sw_framebuffer_write_color(cptr, color); \
|
else sw_framebuffer_write_color(cptr, color); \
|
||||||
\
|
\
|
||||||
skip: \
|
discard: \
|
||||||
x += xInc; y += yInc; z += zInc; \
|
x += xInc; y += yInc; z += zInc; \
|
||||||
r += rInc; g += gInc; b += bInc; a += aInc; \
|
r += rInc; g += gInc; b += bInc; a += aInc; \
|
||||||
} \
|
} \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user