Browse Source

glapi: Alias ClampColor and ClampColorARB.

There's no reason to have separate slots in the dispatch table for
these two functions, since they are synonymous.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
tags/gles3-fmt-v1
Paul Berry 13 years ago
parent
commit
bad96f6ada
3 changed files with 1 additions and 3 deletions
  1. 1
    1
      src/mapi/glapi/gen/GL3x.xml
  2. 0
    1
      src/mesa/main/api_exec.c
  3. 0
    1
      src/mesa/main/dlist.c

+ 1
- 1
src/mapi/glapi/gen/GL3x.xml View File

@@ -150,7 +150,7 @@
<return type="const GLubyte *"/>
</function>

<function name="ClampColor" offset="assign">
<function name="ClampColor" alias="ClampColorARB">
<param name="target" type="GLenum"/>
<param name="clamp" type="GLenum"/>
</function>

+ 0
- 1
src/mesa/main/api_exec.c View File

@@ -768,7 +768,6 @@ _mesa_create_exec_table(struct gl_context *ctx)
SET_ClearBufferfv(exec, _mesa_ClearBufferfv);
SET_ClearBufferfi(exec, _mesa_ClearBufferfi);
SET_GetStringi(exec, _mesa_GetStringi);
SET_ClampColor(exec, _mesa_ClampColorARB);
}

/* GL_ARB_instanced_arrays */

+ 0
- 1
src/mesa/main/dlist.c View File

@@ -10143,7 +10143,6 @@ _mesa_create_save_table(const struct gl_context *ctx)

/* GL_ARB_color_buffer_float */
SET_ClampColorARB(table, save_ClampColorARB);
SET_ClampColor(table, save_ClampColorARB);

/* GL 3.0 */
SET_ClearBufferiv(table, save_ClearBufferiv);

Loading…
Cancel
Save