mesa: Make more consistent use of _mesa_is_{user,winsys}_fbo()
authorPaul Berry <stereotype441@gmail.com>
Wed, 18 Jul 2012 19:54:48 +0000 (12:54 -0700)
committerPaul Berry <stereotype441@gmail.com>
Thu, 26 Jul 2012 17:38:05 +0000 (10:38 -0700)
commit284ad9c3b29a6d6f0bade050ea9e949d67967983
tree7c50cc152a6be64a4e31fb5545a51ce41fd33873
parente72f20641a6ea7875b6021aac13e778ada3b3d50
mesa: 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 core mesa, the state tracker, and src/mesa/program 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>
src/mesa/main/context.c
src/mesa/main/drawpix.c
src/mesa/main/framebuffer.c
src/mesa/main/readpix.c
src/mesa/program/prog_statevars.c
src/mesa/state_tracker/st_cb_viewport.c
src/mesa/state_tracker/st_context.h
src/mesa/state_tracker/st_manager.c