mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
Make gl_rsurf.c compile without warnings with "gcc (GCC) 4.4.5 20101112 (Red Hat 4.4.5-2)".
This commit is contained in:
parent
d8432e78bb
commit
8e6c3f7bf8
1 changed files with 5 additions and 3 deletions
|
@ -68,7 +68,8 @@ instsurf_t **sky_chain_tail;
|
|||
#define CHAIN_SURF_F2B(surf,chain) \
|
||||
do { \
|
||||
instsurf_t *inst = (surf)->instsurf; \
|
||||
if (!inst) (surf)->tinst = inst = get_instsurf (); \
|
||||
if (__builtin_expect(!inst, 1)) \
|
||||
(surf)->tinst = inst = get_instsurf (); \
|
||||
inst->surface = (surf); \
|
||||
*(chain##_tail) = inst; \
|
||||
(chain##_tail) = &inst->tex_chain; \
|
||||
|
@ -78,7 +79,8 @@ instsurf_t **sky_chain_tail;
|
|||
#define CHAIN_SURF_B2F(surf,chain) \
|
||||
do { \
|
||||
instsurf_t *inst = (surf)->instsurf; \
|
||||
if (!inst) (surf)->tinst = inst = get_instsurf (); \
|
||||
if (__builtin_expect(!inst, 1)) \
|
||||
(surf)->tinst = inst = get_instsurf (); \
|
||||
inst->surface = (surf); \
|
||||
inst->tex_chain = (chain); \
|
||||
(chain) = inst; \
|
||||
|
@ -387,7 +389,7 @@ R_DrawWaterSurfaces (void)
|
|||
}
|
||||
}
|
||||
|
||||
static inline void
|
||||
static void
|
||||
DrawTextureChains (int disable_blend, int do_bind)
|
||||
{
|
||||
int i;
|
||||
|
|
Loading…
Reference in a new issue