gallium: Fix build on Windows.
authorMichal Krol <michal@tungstengraphics.com>
Thu, 20 Mar 2008 19:34:03 +0000 (20:34 +0100)
committerMichal Krol <michal@tungstengraphics.com>
Thu, 20 Mar 2008 19:34:03 +0000 (20:34 +0100)
src/gallium/auxiliary/util/u_simple_shaders.c

index a2c918b7fe5e76f97ecf872a395e56b3f9332395..8cb74e81d2f407d691c66f7b2794a9b7eecf5063 100644 (file)
@@ -281,7 +281,7 @@ util_make_fragment_passthrough_shader(struct pipe_context *pipe)
    uint ti;
    struct pipe_shader_state shader;
 
-   tokens = (struct tgsi_token *) malloc(maxTokens * sizeof(tokens[0]));
+   tokens = (struct tgsi_token *) MALLOC(maxTokens * sizeof(tokens[0]));
 
    /* shader header
     */