python: Update for renamed sampler/texture state setters.
authorMichal Krol <michal@vmware.com>
Tue, 1 Dec 2009 07:47:00 +0000 (08:47 +0100)
committerMichal Krol <michal@vmware.com>
Tue, 1 Dec 2009 08:52:30 +0000 (09:52 +0100)
src/gallium/state_trackers/python/p_context.i
src/gallium/state_trackers/python/retrace/interpreter.py

index a40aa1e518772fdc6b5ac278f473d6a8ee6d327d..9728207d9c7a9e552e09dd96358b1c29cdd6b43e 100644 (file)
@@ -147,9 +147,9 @@ struct st_context {
       if(!texture)
          texture = $self->default_texture;
       pipe_texture_reference(&$self->sampler_textures[index], texture);
-      $self->pipe->set_sampler_textures($self->pipe, 
-                                        PIPE_MAX_SAMPLERS,
-                                        $self->sampler_textures);
+      $self->pipe->set_fragment_sampler_textures($self->pipe, 
+                                                 PIPE_MAX_SAMPLERS,
+                                                 $self->sampler_textures);
    }
 
    void set_vertex_buffer(unsigned index,
index d0bcb690a9b2265942fd17b298783fef18227802..5f826b1c4c4beb57d13998bcdaec28d62e7f5da3 100755 (executable)
@@ -388,7 +388,7 @@ class Context(Object):
     def delete_sampler_state(self, state):
         pass
 
-    def bind_sampler_states(self, num_states, states):
+    def bind_fragment_sampler_states(self, num_states, states):
         for i in range(num_states):
             self.real.set_sampler(i, states[i])
         
@@ -486,7 +486,7 @@ class Context(Object):
     def set_viewport_state(self, state):
         self.real.set_viewport(state)
 
-    def set_sampler_textures(self, num_textures, textures):
+    def set_fragment_sampler_textures(self, num_textures, textures):
         for i in range(num_textures):
             self.real.set_sampler_texture(i, textures[i])