[intel] Allow attIndex to be negative to avoid defeating the >= 0 check.
authorEric Anholt <eric@anholt.net>
Fri, 15 Feb 2008 21:48:11 +0000 (13:48 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 15 Feb 2008 21:48:11 +0000 (13:48 -0800)
commitc741d287ecce1bd95d4e024d60e274abfcfbe22f
tree05d265aa3494b4a85ee2ef712d7278654c107832
parenteed5e6f40f1728ae5ae346d44ce45ba767bbf24c
[intel] Allow attIndex to be negative to avoid defeating the >= 0 check.

Otherwise, we would go wildly out of bounds if passed -1 (no renderbuffer), such
as while doing LOCK_HARDWARE with glDrawBuffer(GL_NONE).
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/intel/intel_fbo.h