Use ProgramStringNotify

This commit is contained in:
Zou Nan hai
2007-07-17 11:19:52 +08:00
parent 575f3e918f
commit 719cf0b795
2 changed files with 2 additions and 27 deletions

View File

@@ -242,6 +242,8 @@ _mesa_init_vertex_program( GLcontext *ctx, struct gl_vertex_program *prog,
struct gl_program *
_mesa_new_program(GLcontext *ctx, GLenum target, GLuint id)
{
if (ctx->Driver.NewProgram)
return ctx->Driver.NewProgram(ctx, target, id);
switch (target) {
case GL_VERTEX_PROGRAM_ARB: /* == GL_VERTEX_PROGRAM_NV */
return _mesa_init_vertex_program(ctx, CALLOC_STRUCT(gl_vertex_program),