diff options
author | Brian Paul <[email protected]> | 2012-04-20 07:58:59 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-05-01 11:39:34 -0600 |
commit | 4433b0302d0aa9dc61002e8bb4fd1b752b0be338 (patch) | |
tree | a708fa134250670d76f6ea6ab13c5b465d14dda9 /src/mesa/drivers/dri/i965/gen6_sf_state.c | |
parent | 264b584294dc1c00c53f6a0622b7e6e55e8dce37 (diff) |
intel: use _mesa_is_winsys/user_fbo() helpers
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen6_sf_state.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen6_sf_state.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/gen6_sf_state.c b/src/mesa/drivers/dri/i965/gen6_sf_state.c index 95ed1f74ce4..5c4293ca91e 100644 --- a/src/mesa/drivers/dri/i965/gen6_sf_state.c +++ b/src/mesa/drivers/dri/i965/gen6_sf_state.c @@ -30,6 +30,7 @@ #include "brw_defines.h" #include "brw_util.h" #include "main/macros.h" +#include "main/fbobject.h" #include "intel_batchbuffer.h" /** @@ -120,7 +121,7 @@ upload_sf_state(struct brw_context *brw) uint32_t dw1, dw2, dw3, dw4, dw16, dw17; int i; /* _NEW_BUFFER */ - bool render_to_fbo = brw->intel.ctx.DrawBuffer->Name != 0; + bool render_to_fbo = _mesa_is_user_fbo(brw->intel.ctx.DrawBuffer); int attr = 0, input_index = 0; int urb_entry_read_offset = 1; float point_size; |