identity: fix copy & paste error
authorRoland Scheidegger <sroland@vmware.com>
Tue, 9 Mar 2010 15:28:59 +0000 (16:28 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Tue, 9 Mar 2010 15:28:59 +0000 (16:28 +0100)
src/gallium/drivers/identity/id_context.c

index 05a9dfab774ee24c16dc8914e8581d3973434737..baf0ae440166762c525b966a0dbd2729a243a6f2 100644 (file)
@@ -378,7 +378,7 @@ identity_delete_vs_state(struct pipe_context *_pipe,
 }
 
 
-static void
+static void *
 identity_create_vertex_elements_state(struct pipe_context *_pipe,
                                       unsigned num_elements,
                                       const struct pipe_vertex_element *vertex_elements)
@@ -386,9 +386,9 @@ identity_create_vertex_elements_state(struct pipe_context *_pipe,
    struct identity_context *id_pipe = identity_context(_pipe);
    struct pipe_context *pipe = id_pipe->pipe;
 
-   pipe->create_vertex_elements_state(pipe,
-                                      num_elements,
-                                      vertex_elements);
+   return pipe->create_vertex_elements_state(pipe,
+                                             num_elements,
+                                             vertex_elements);
 }
 
 static void