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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user