diff options
author | Younes Manton <younes.m@gmail.com> | 2008-06-16 23:18:20 -0400 |
---|---|---|
committer | Younes Manton <younes.m@gmail.com> | 2008-06-30 10:11:02 -0400 |
commit | 14d4f9e44e55e2b427579ed6788e579d70b289e7 (patch) | |
tree | 7ee97f5553a2b074dd3b26ad20f5ae4ca147eb8a /src/gallium/state_trackers/g3dvl/vl_surface.c | |
parent | c6ddcc10e31f26d17c1c8181013268766aca9ac6 (diff) |
g3dvl: Get rid of some Valgrind errors.
Get rid of some Valgrind memory leak and uninitialized var errors.
Diffstat (limited to 'src/gallium/state_trackers/g3dvl/vl_surface.c')
-rw-r--r-- | src/gallium/state_trackers/g3dvl/vl_surface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/g3dvl/vl_surface.c b/src/gallium/state_trackers/g3dvl/vl_surface.c index 0e1adea472..3f59d0f155 100644 --- a/src/gallium/state_trackers/g3dvl/vl_surface.c +++ b/src/gallium/state_trackers/g3dvl/vl_surface.c @@ -195,6 +195,7 @@ int vlCreateSurface(struct VL_CONTEXT *context, struct VL_SURFACE **surface) template.depth[0] = 1; template.compressed = 0; template.cpp = 4; + template.tex_usage = PIPE_TEXTURE_USAGE_SAMPLER | PIPE_TEXTURE_USAGE_RENDER_TARGET; sfc->texture = pipe->screen->texture_create(pipe->screen, &template); |