mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 02:11:19 +00:00
glsl_bsp.c: __builtin_expect() to avoid compiler warnings.
This commit is contained in:
parent
f800e79a38
commit
82adc67a67
1 changed files with 4 additions and 2 deletions
|
@ -219,7 +219,8 @@ static struct {
|
|||
#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; \
|
||||
|
@ -229,7 +230,8 @@ static struct {
|
|||
#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; \
|
||||
|
|
Loading…
Reference in a new issue