diff options
author | Cooper Yuan <[email protected]> | 2009-11-05 15:59:27 +0800 |
---|---|---|
committer | Cooper Yuan <[email protected]> | 2009-11-05 15:59:27 +0800 |
commit | c621c100b25c83ee9790ed39b27bd95a13a69377 (patch) | |
tree | 835a585c5204932ca29e65932795b4dcafc91100 /src/gallium/auxiliary/vl/vl_compositor.c | |
parent | c2e47191d72e16aaa1fae4f47bbed7639c2ff201 (diff) |
g3dvl: add scissor setting
Diffstat (limited to 'src/gallium/auxiliary/vl/vl_compositor.c')
-rw-r--r-- | src/gallium/auxiliary/vl/vl_compositor.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/vl/vl_compositor.c b/src/gallium/auxiliary/vl/vl_compositor.c index b36dbeb2088..cda6dc134a0 100644 --- a/src/gallium/auxiliary/vl/vl_compositor.c +++ b/src/gallium/auxiliary/vl/vl_compositor.c @@ -473,8 +473,12 @@ void vl_compositor_render(struct vl_compositor *compositor, compositor->viewport.translate[2] = 0; compositor->viewport.translate[3] = 0; + compositor->scissor.maxx = compositor->fb_state.width; + compositor->scissor.maxy = compositor->fb_state.height; + compositor->pipe->set_framebuffer_state(compositor->pipe, &compositor->fb_state); compositor->pipe->set_viewport_state(compositor->pipe, &compositor->viewport); + compositor->pipe->set_scissor_state(compositor->pipe, &compositor->scissor); compositor->pipe->bind_sampler_states(compositor->pipe, 1, &compositor->sampler); compositor->pipe->set_sampler_textures(compositor->pipe, 1, &src_surface); compositor->pipe->bind_vs_state(compositor->pipe, compositor->vertex_shader); |