Rename _mesa_IsProgram() to _mesa_IsProgramARB() to avoid collision with the
OpenGL 2.0 function of the same name.
This commit is contained in:
@@ -8052,7 +8052,7 @@ _mesa_init_dlist_table(struct _glapi_table *table)
|
|||||||
SET_GetVertexAttribfvNV(table, _mesa_GetVertexAttribfvNV);
|
SET_GetVertexAttribfvNV(table, _mesa_GetVertexAttribfvNV);
|
||||||
SET_GetVertexAttribivNV(table, _mesa_GetVertexAttribivNV);
|
SET_GetVertexAttribivNV(table, _mesa_GetVertexAttribivNV);
|
||||||
SET_GetVertexAttribPointervNV(table, _mesa_GetVertexAttribPointervNV);
|
SET_GetVertexAttribPointervNV(table, _mesa_GetVertexAttribPointervNV);
|
||||||
SET_IsProgramNV(table, _mesa_IsProgram);
|
SET_IsProgramNV(table, _mesa_IsProgramARB);
|
||||||
SET_LoadProgramNV(table, save_LoadProgramNV);
|
SET_LoadProgramNV(table, save_LoadProgramNV);
|
||||||
SET_ProgramParameter4dNV(table, save_ProgramParameter4dNV);
|
SET_ProgramParameter4dNV(table, save_ProgramParameter4dNV);
|
||||||
SET_ProgramParameter4dvNV(table, save_ProgramParameter4dvNV);
|
SET_ProgramParameter4dvNV(table, save_ProgramParameter4dvNV);
|
||||||
@@ -8145,7 +8145,7 @@ _mesa_init_dlist_table(struct _glapi_table *table)
|
|||||||
SET_BindProgramNV(table, save_BindProgramNV);
|
SET_BindProgramNV(table, save_BindProgramNV);
|
||||||
SET_DeleteProgramsNV(table, _mesa_DeletePrograms);
|
SET_DeleteProgramsNV(table, _mesa_DeletePrograms);
|
||||||
SET_GenProgramsNV(table, _mesa_GenPrograms);
|
SET_GenProgramsNV(table, _mesa_GenPrograms);
|
||||||
SET_IsProgramNV(table, _mesa_IsProgram);
|
SET_IsProgramNV(table, _mesa_IsProgramARB);
|
||||||
SET_GetVertexAttribdvNV(table, _mesa_GetVertexAttribdvNV);
|
SET_GetVertexAttribdvNV(table, _mesa_GetVertexAttribdvNV);
|
||||||
SET_GetVertexAttribfvNV(table, _mesa_GetVertexAttribfvNV);
|
SET_GetVertexAttribfvNV(table, _mesa_GetVertexAttribfvNV);
|
||||||
SET_GetVertexAttribivNV(table, _mesa_GetVertexAttribivNV);
|
SET_GetVertexAttribivNV(table, _mesa_GetVertexAttribivNV);
|
||||||
|
@@ -507,7 +507,7 @@ _mesa_init_exec_table(struct _glapi_table *exec)
|
|||||||
SET_GetVertexAttribfvNV(exec, _mesa_GetVertexAttribfvNV);
|
SET_GetVertexAttribfvNV(exec, _mesa_GetVertexAttribfvNV);
|
||||||
SET_GetVertexAttribivNV(exec, _mesa_GetVertexAttribivNV);
|
SET_GetVertexAttribivNV(exec, _mesa_GetVertexAttribivNV);
|
||||||
SET_GetVertexAttribPointervNV(exec, _mesa_GetVertexAttribPointervNV);
|
SET_GetVertexAttribPointervNV(exec, _mesa_GetVertexAttribPointervNV);
|
||||||
SET_IsProgramNV(exec, _mesa_IsProgram);
|
SET_IsProgramNV(exec, _mesa_IsProgramARB);
|
||||||
SET_LoadProgramNV(exec, _mesa_LoadProgramNV);
|
SET_LoadProgramNV(exec, _mesa_LoadProgramNV);
|
||||||
SET_ProgramParameter4dNV(exec, _mesa_ProgramParameter4dNV);
|
SET_ProgramParameter4dNV(exec, _mesa_ProgramParameter4dNV);
|
||||||
SET_ProgramParameter4dvNV(exec, _mesa_ProgramParameter4dvNV);
|
SET_ProgramParameter4dvNV(exec, _mesa_ProgramParameter4dvNV);
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Mesa 3-D graphics library
|
* Mesa 3-D graphics library
|
||||||
* Version: 6.5
|
* Version: 6.5.2
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
|
* Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
|
||||||
*
|
*
|
||||||
@@ -36,6 +36,7 @@
|
|||||||
#include "imports.h"
|
#include "imports.h"
|
||||||
#include "macros.h"
|
#include "macros.h"
|
||||||
#include "mtypes.h"
|
#include "mtypes.h"
|
||||||
|
#include "program.h"
|
||||||
|
|
||||||
|
|
||||||
void GLAPIENTRY
|
void GLAPIENTRY
|
||||||
@@ -179,6 +180,29 @@ _mesa_GetVertexAttribPointervARB(GLuint index, GLenum pname, GLvoid **pointer)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determine if id names a vertex or fragment program.
|
||||||
|
* \note Not compiled into display lists.
|
||||||
|
* \note Called from both glIsProgramNV and glIsProgramARB.
|
||||||
|
* \param id is the program identifier
|
||||||
|
* \return GL_TRUE if id is a program, else GL_FALSE.
|
||||||
|
*/
|
||||||
|
GLboolean GLAPIENTRY
|
||||||
|
_mesa_IsProgramARB(GLuint id)
|
||||||
|
{
|
||||||
|
GET_CURRENT_CONTEXT(ctx);
|
||||||
|
ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, GL_FALSE);
|
||||||
|
|
||||||
|
if (id == 0)
|
||||||
|
return GL_FALSE;
|
||||||
|
|
||||||
|
if (_mesa_lookup_program(ctx, id))
|
||||||
|
return GL_TRUE;
|
||||||
|
else
|
||||||
|
return GL_FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void GLAPIENTRY
|
void GLAPIENTRY
|
||||||
_mesa_ProgramStringARB(GLenum target, GLenum format, GLsizei len,
|
_mesa_ProgramStringARB(GLenum target, GLenum format, GLsizei len,
|
||||||
const GLvoid *string)
|
const GLvoid *string)
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
* Mesa 3-D graphics library
|
* Mesa 3-D graphics library
|
||||||
* Version: 5.1
|
* Version: 6.5.2
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
|
* Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
@@ -51,6 +51,10 @@ extern void GLAPIENTRY
|
|||||||
_mesa_GetVertexAttribPointervARB(GLuint index, GLenum pname, GLvoid **pointer);
|
_mesa_GetVertexAttribPointervARB(GLuint index, GLenum pname, GLvoid **pointer);
|
||||||
|
|
||||||
|
|
||||||
|
extern GLboolean GLAPIENTRY
|
||||||
|
_mesa_IsProgramARB(GLuint id);
|
||||||
|
|
||||||
|
|
||||||
extern void GLAPIENTRY
|
extern void GLAPIENTRY
|
||||||
_mesa_ProgramStringARB(GLenum target, GLenum format, GLsizei len,
|
_mesa_ProgramStringARB(GLenum target, GLenum format, GLsizei len,
|
||||||
const GLvoid *string);
|
const GLvoid *string);
|
||||||
|
@@ -1973,30 +1973,6 @@ _mesa_GenPrograms(GLsizei n, GLuint *ids)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Determine if id names a vertex or fragment program.
|
|
||||||
* \note Not compiled into display lists.
|
|
||||||
* \note Called from both glIsProgramNV and glIsProgramARB.
|
|
||||||
* \param id is the program identifier
|
|
||||||
* \return GL_TRUE if id is a program, else GL_FALSE.
|
|
||||||
*/
|
|
||||||
GLboolean GLAPIENTRY
|
|
||||||
_mesa_IsProgram(GLuint id)
|
|
||||||
{
|
|
||||||
GET_CURRENT_CONTEXT(ctx);
|
|
||||||
ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, GL_FALSE);
|
|
||||||
|
|
||||||
if (id == 0)
|
|
||||||
return GL_FALSE;
|
|
||||||
|
|
||||||
if (_mesa_lookup_program(ctx, id))
|
|
||||||
return GL_TRUE;
|
|
||||||
else
|
|
||||||
return GL_FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**********************************************************************/
|
/**********************************************************************/
|
||||||
/* GL_MESA_program_debug extension */
|
/* GL_MESA_program_debug extension */
|
||||||
/**********************************************************************/
|
/**********************************************************************/
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Mesa 3-D graphics library
|
* Mesa 3-D graphics library
|
||||||
* Version: 6.5.1
|
* Version: 6.5.2
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
|
* Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
|
||||||
*
|
*
|
||||||
@@ -290,9 +290,6 @@ _mesa_DeletePrograms(GLsizei n, const GLuint *ids);
|
|||||||
extern void GLAPIENTRY
|
extern void GLAPIENTRY
|
||||||
_mesa_GenPrograms(GLsizei n, GLuint *ids);
|
_mesa_GenPrograms(GLsizei n, GLuint *ids);
|
||||||
|
|
||||||
extern GLboolean GLAPIENTRY
|
|
||||||
_mesa_IsProgram(GLuint id);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user