diff options
Diffstat (limited to 'src/mesa/drivers/dri/i915/intel_tris.c')
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_tris.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_tris.c b/src/mesa/drivers/dri/i915/intel_tris.c index cf67d743004..5954b24fe5a 100644 --- a/src/mesa/drivers/dri/i915/intel_tris.c +++ b/src/mesa/drivers/dri/i915/intel_tris.c @@ -38,6 +38,7 @@ #include "main/texobj.h" #include "main/state.h" #include "main/dd.h" +#include "main/fbobject.h" #include "swrast/swrast.h" #include "swrast_setup/swrast_setup.h" @@ -503,7 +504,7 @@ intel_emit_fragcoord(struct intel_context *intel, intelVertexPtr v) fragcoord[0] = vertex_position[0]; - if (fb->Name) + if (_mesa_is_user_fbo(fb)) fragcoord[1] = vertex_position[1]; else fragcoord[1] = fb->Height - vertex_position[1]; |