IOQ3 commit 2339

This commit is contained in:
Richard Allen 2012-12-12 19:47:18 +00:00
parent b53b8a0c3b
commit 1038ffe69a
2 changed files with 2 additions and 6 deletions

View file

@ -1311,7 +1311,7 @@ void R_InitQueries(void)
return;
#ifdef REACTION
qglGenQueriesARB(ARRAY_SIZE(tr.sunFlareQuery), tr.sunFlareQuery);
qglGenQueriesARB(ARRAY_LEN(tr.sunFlareQuery), tr.sunFlareQuery);
#endif
}
@ -1321,7 +1321,7 @@ void R_ShutDownQueries(void)
return;
#ifdef REACTION
qglDeleteQueriesARB(ARRAY_SIZE(tr.sunFlareQuery), tr.sunFlareQuery);
qglDeleteQueriesARB(ARRAY_LEN(tr.sunFlareQuery), tr.sunFlareQuery);
#endif
}

View file

@ -40,10 +40,6 @@ typedef unsigned int glIndex_t;
#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
// to be double buffered to allow it to run in
// parallel on a dual cpu machine