context->states.mc.i_vs = pipe->create_vs_state(pipe, &vs);
+ free(tokens);
+
return 0;
}
context->states.mc.i_fs = pipe->create_fs_state(pipe, &fs);
+ free(tokens);
+
return 0;
}
context->states.mc.p_vs = pipe->create_vs_state(pipe, &vs);
+ free(tokens);
+
return 0;
}
context->states.mc.p_fs = pipe->create_fs_state(pipe, &fs);
+ free(tokens);
+
return 0;
}
context->states.mc.b_vs = pipe->create_vs_state(pipe, &vs);
+ free(tokens);
+
return 0;
}
context->states.mc.b_fs = pipe->create_fs_state(pipe, &fs);
+ free(tokens);
+
return 0;
}
/*sampler.prefilter = ;*/
/*sampler.shadow_ambient = ;*/
/*sampler.lod_bias = ;*/
- /*sampler.min_lod = ;*/
+ sampler.min_lod = 0;
/*sampler.max_lod = ;*/
/*sampler.border_color[i] = ;*/
/*sampler.max_anisotropy = ;*/
context->states.csc.vertex_shader = pipe->create_vs_state(pipe, &vs);
+ free(tokens);
+
return 0;
}
context->states.csc.fragment_shader = pipe->create_fs_state(pipe, &fs);
+ free(tokens);
+
return 0;
}
pipe = context->pipe;
rast.flatshade = 1;
+ rast.flatshade_first = 0;
rast.light_twoside = 0;
rast.front_winding = PIPE_WINDING_CCW;
rast.cull_mode = PIPE_WINDING_CW;
rast.offset_ccw = 0;
rast.scissor = 0;
rast.poly_smooth = 0;
+ rast.poly_stipple_enable = 0;
rast.point_sprite = 0;
rast.point_size_per_vertex = 0;
rast.multisample = 0;
rast.bypass_vs = 0;
rast.origin_lower_left = 0;
rast.line_width = 1;
+ rast.point_smooth = 0;
rast.point_size = 1;
rast.offset_units = 1;
rast.offset_scale = 1;
vlDestroy(context);
+ context->pipe->screen->destroy(context->pipe->screen);
+ context->pipe->destroy(context->pipe);
+
free(context);
return 0;