s/GL_SHADER_PROGRAM/GL_SHADER_PROGRAM_MESA/ (a Mesa-specific token)
authorBrian <brian@yutani.localnet.net>
Wed, 18 Apr 2007 20:53:23 +0000 (14:53 -0600)
committerBrian <brian@yutani.localnet.net>
Wed, 18 Apr 2007 20:53:23 +0000 (14:53 -0600)
src/mesa/main/context.c
src/mesa/main/mtypes.h
src/mesa/shader/shader_api.c

index 93442b91aaabd363b1b92d3190632693a8e989a3..9dc7b11e361d560113991747c2f8a05b3a96e74d 100644 (file)
@@ -629,7 +629,7 @@ delete_shader_cb(GLuint id, void *data, void *userData)
    }
    else {
       struct gl_shader_program *shProg = (struct gl_shader_program *) data;
-      ASSERT(shProg->Type == GL_SHADER_PROGRAM);
+      ASSERT(shProg->Type == GL_SHADER_PROGRAM_MESA);
       _mesa_free_shader_program(ctx, shProg);
    }
 }
index 89cdc79089718de3b9a7715c2273db5ccbf129dd..0044494bd3c2c5097a15d7484d14bff25459ea10 100644 (file)
@@ -47,7 +47,7 @@
 /**
  * Special, internal token
  */
-#define GL_SHADER_PROGRAM 0x9999
+#define GL_SHADER_PROGRAM_MESA 0x9999
 
 
 /**
index 41646e7664db52c15dd00ffee1e0410e02542ebb..004c9c8ec3adf059f591c8b61250b060cb89fca3 100644 (file)
@@ -58,7 +58,7 @@ _mesa_new_shader_program(GLcontext *ctx, GLuint name)
    struct gl_shader_program *shProg;
    shProg = CALLOC_STRUCT(gl_shader_program);
    if (shProg) {
-      shProg->Type = GL_SHADER_PROGRAM;
+      shProg->Type = GL_SHADER_PROGRAM_MESA;
       shProg->Name = name;
       shProg->RefCount = 1;
       shProg->Attributes = _mesa_new_parameter_list();
@@ -114,7 +114,7 @@ _mesa_free_shader_program_data(GLcontext *ctx,
 {
    GLuint i;
 
-   assert(shProg->Type == GL_SHADER_PROGRAM);
+   assert(shProg->Type == GL_SHADER_PROGRAM_MESA);
 
    _mesa_clear_shader_program_data(ctx, shProg);
 
@@ -204,7 +204,7 @@ _mesa_lookup_shader_program(GLcontext *ctx, GLuint name)
        * in the same hash table.  Check the object's type to be sure it's
        * what we're expecting.
        */
-      if (shProg && shProg->Type != GL_SHADER_PROGRAM) {
+      if (shProg && shProg->Type != GL_SHADER_PROGRAM_MESA) {
          return NULL;
       }
       return shProg;
@@ -308,7 +308,7 @@ _mesa_lookup_shader(GLcontext *ctx, GLuint name)
        * in the same hash table.  Check the object's type to be sure it's
        * what we're expecting.
        */
-      if (sh && sh->Type == GL_SHADER_PROGRAM) {
+      if (sh && sh->Type == GL_SHADER_PROGRAM_MESA) {
          assert(sh->Type == GL_VERTEX_SHADER ||
                 sh->Type == GL_FRAGMENT_SHADER);
          return NULL;