mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 14:41:42 +00:00
Remove ARRAY_SIZE, and use ARRAY_LEN instead.
This commit is contained in:
parent
5cbe7888f8
commit
3dff29e991
2 changed files with 2 additions and 6 deletions
|
@ -1311,7 +1311,7 @@ void R_InitQueries(void)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
#ifdef REACTION
|
#ifdef REACTION
|
||||||
qglGenQueriesARB(ARRAY_SIZE(tr.sunFlareQuery), tr.sunFlareQuery);
|
qglGenQueriesARB(ARRAY_LEN(tr.sunFlareQuery), tr.sunFlareQuery);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1321,7 +1321,7 @@ void R_ShutDownQueries(void)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
#ifdef REACTION
|
#ifdef REACTION
|
||||||
qglDeleteQueriesARB(ARRAY_SIZE(tr.sunFlareQuery), tr.sunFlareQuery);
|
qglDeleteQueriesARB(ARRAY_LEN(tr.sunFlareQuery), tr.sunFlareQuery);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,10 +40,6 @@ typedef unsigned int glIndex_t;
|
||||||
|
|
||||||
#define BUFFER_OFFSET(i) ((char *)NULL + (i))
|
#define BUFFER_OFFSET(i) ((char *)NULL + (i))
|
||||||
|
|
||||||
#ifndef ARRAY_SIZE
|
|
||||||
# define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// everything that is needed by the backend needs
|
// everything that is needed by the backend needs
|
||||||
// to be double buffered to allow it to run in
|
// to be double buffered to allow it to run in
|
||||||
// parallel on a dual cpu machine
|
// parallel on a dual cpu machine
|
||||||
|
|
Loading…
Reference in a new issue