st: rename a helper function
authorBrian Paul <brianp@vmware.com>
Mon, 6 Apr 2009 20:00:03 +0000 (14:00 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 6 Apr 2009 20:00:03 +0000 (14:00 -0600)
src/mesa/state_tracker/st_atom_sampler.c

index d7b904354f2e402e800109ece15a6d56a85c22ca..b7b0e50cbaba07848b9d7abc5a8ebe80691833aa 100644 (file)
@@ -48,7 +48,7 @@
  * Convert GLenum texcoord wrap tokens to pipe tokens.
  */
 static GLuint
-gl_wrap_to_sp(GLenum wrap)
+gl_wrap_xlate(GLenum wrap)
 {
    switch (wrap) {
    case GL_REPEAT:
@@ -149,9 +149,9 @@ update_samplers(struct st_context *st)
             texobj = st_get_default_texture(st);
          }
 
-         sampler->wrap_s = gl_wrap_to_sp(texobj->WrapS);
-         sampler->wrap_t = gl_wrap_to_sp(texobj->WrapT);
-         sampler->wrap_r = gl_wrap_to_sp(texobj->WrapR);
+         sampler->wrap_s = gl_wrap_xlate(texobj->WrapS);
+         sampler->wrap_t = gl_wrap_xlate(texobj->WrapT);
+         sampler->wrap_r = gl_wrap_xlate(texobj->WrapR);
 
          sampler->min_img_filter = gl_filter_to_img_filter(texobj->MinFilter);
          sampler->min_mip_filter = gl_filter_to_mip_filter(texobj->MinFilter);