mesa: fix the low limit of width and height for glRenderbufferStorage
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Tue, 25 Oct 2011 07:36:59 +0000 (15:36 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Thu, 3 Nov 2011 02:22:56 +0000 (10:22 +0800)
commit49f8447acc430944504c658c2d2b4a2ccb3af0bc
tree101760ed5097dd9d6ead5a4f5e3b301b6d325450
parent1f5bd65efa228736d41956f9e76df350dfe2d5d2
mesa: fix the low limit of width and height for glRenderbufferStorage

glRenderbufferStorage man page says:

  GL_INVALID_VALUE is generated if either of width or height is negative,
  or greater than the value of GL_MAX_RENDERBUFFER_SIZE.

NOTE: this is a candidate for the 7.11 branch

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/fbobject.c