intel: Make more consistent use of _mesa_is_{user,winsys}_fbo()

A lot of code was still differentiating between between winsys and
user fbos by testing the fbo's name against zero.  This converts
everything in the i915 and 965 drivers over to use _mesa_is_user_fbo()
and _mesa_is_winsys_fbo().

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Paul Berry
2012-07-18 12:54:48 -07:00
parent 284ad9c3b2
commit c738ea1191
9 changed files with 19 additions and 12 deletions

View File

@@ -359,7 +359,7 @@ intel_resize_buffers(struct gl_context *ctx, struct gl_framebuffer *fb,
fb->Initialized = true; /* XXX remove someday */
if (fb->Name != 0) {
if (_mesa_is_user_fbo(fb)) {
return;
}