mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 13:40:11 +01:00
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>
This commit is contained in:
parent
3f80c95f35
commit
bfbf286f7d
1 changed files with 6 additions and 5 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue