diff options
author | Zack Rusin <[email protected]> | 2013-09-24 16:25:24 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2013-09-25 19:38:21 -0400 |
commit | 1291e833e70f79bc7fb53846c25de7309075ea10 (patch) | |
tree | 3a6af94d05e25496b0ff471ae1ad4d04765cbba7 /src/gallium/drivers/llvmpipe | |
parent | 028b26e2efa7485fb7a5dd9be681074a36f9e442 (diff) |
llvmpipe: we need to subdivide if fb is bigger in either direction
We need to subdivide triangles if either of the dimensions is
larger than the max edge length, not when both of them are larger.
Signed-off-by: Zack Rusin <[email protected]>
Reviewed-by: José Fonseca <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup.c b/src/gallium/drivers/llvmpipe/lp_setup.c index 5fde01fa13b..c8199b496f9 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup.c +++ b/src/gallium/drivers/llvmpipe/lp_setup.c @@ -1015,7 +1015,7 @@ try_update_scene_state( struct lp_setup_context *setup ) * To cope with this problem we check if triangles are large and * subdivide them if needed. */ - setup->subdivide_large_triangles = (setup->fb.width > 2048 && + setup->subdivide_large_triangles = (setup->fb.width > 2048 || setup->fb.height > 2048); } |