|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* bind newProg */ |
|
|
/* bind newProg */ |
|
|
if (target == GL_VERTEX_PROGRAM_ARB) { /* == GL_VERTEX_PROGRAM_NV */ |
|
|
if (target == GL_VERTEX_PROGRAM_ARB) { /* == GL_VERTEX_PROGRAM_NV */ |
|
|
|
|
|
if (ctx->VertexProgram._Current == ctx->VertexProgram.Current) |
|
|
|
|
|
ctx->VertexProgram._Current = (struct gl_vertex_program *) newProg; |
|
|
ctx->VertexProgram.Current = (struct gl_vertex_program *) newProg; |
|
|
ctx->VertexProgram.Current = (struct gl_vertex_program *) newProg; |
|
|
} |
|
|
} |
|
|
else if (target == GL_FRAGMENT_PROGRAM_NV || |
|
|
else if (target == GL_FRAGMENT_PROGRAM_NV || |
|
|
|
|
|
|
|
|
* \note Not compiled into display lists. |
|
|
* \note Not compiled into display lists. |
|
|
* \note Called by both glDeleteProgramsNV and glDeleteProgramsARB. |
|
|
* \note Called by both glDeleteProgramsNV and glDeleteProgramsARB. |
|
|
*/ |
|
|
*/ |
|
|
void GLAPIENTRY |
|
|
|
|
|
|
|
|
void GLAPIENTRY |
|
|
_mesa_DeletePrograms(GLsizei n, const GLuint *ids) |
|
|
_mesa_DeletePrograms(GLsizei n, const GLuint *ids) |
|
|
{ |
|
|
{ |
|
|
GLint i; |
|
|
GLint i; |