summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/remap.c
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2016-06-07 17:33:40 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2016-06-13 15:31:28 +0100
commitbfbf286f7d607f1add1cedd2e2717e249fb45d0f (patch)
treebc16976a61b987fb1fff5ff303ad5abcb21a540f /src/mesa/main/remap.c
parent3f80c95f35cd21f19e4946a3f50d4c5e16bad7a2 (diff)
downloadexternal_mesa3d-bfbf286f7d607f1add1cedd2e2717e249fb45d0f.zip
external_mesa3d-bfbf286f7d607f1add1cedd2e2717e249fb45d0f.tar.gz
external_mesa3d-bfbf286f7d607f1add1cedd2e2717e249fb45d0f.tar.bz2
mesa: use native types when possible
All of the functions and related data is internal, so there's no point if using the GL types. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/mesa/main/remap.c')
-rw-r--r--src/mesa/main/remap.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mesa/main/remap.c b/src/mesa/main/remap.c
index 595d0a1..a756057 100644
--- a/src/mesa/main/remap.c
+++ b/src/mesa/main/remap.c
@@ -35,6 +35,7 @@
* a dynamic entry, or the corresponding static entry, in glapi.
*/
+#include <stdbool.h>
#include "remap.h"
#include "imports.h"
#include "glapi/glapi.h"
@@ -61,12 +62,12 @@ int driDispatchRemapTable[driDispatchRemapTable_size];
* \return the offset of the (re-)mapped function in the dispatch
* table, or -1.
*/
-static GLint
+static int
map_function_spec(const char *spec)
{
const char *signature;
const char *names[MAX_ENTRY_POINTS + 1];
- GLint num_names = 0;
+ int num_names = 0;
if (!spec)
return -1;
@@ -102,16 +103,16 @@ _mesa_do_init_remap_table(const char *pool,
int size,
const struct gl_function_pool_remap *remap)
{
- static GLboolean initialized = GL_FALSE;
+ static bool initialized = false;
GLint i;
if (initialized)
return;
- initialized = GL_TRUE;
+ initialized = true;
/* initialize the remap table */
for (i = 0; i < size; i++) {
- GLint offset;
+ int offset;
const char *spec;
/* sanity check */