intel: Clip to window after calling Driver.TexImage2D
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 18 May 2009 20:26:16 +0000 (13:26 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 2 Jun 2009 15:50:11 +0000 (16:50 +0100)
commit129f311673c99eb912d659023e50bc5f0ef53249
tree10ed9682b9a5df9d8b6cb48740c4b6a8a6561a87
parenta945e203d4fe254593bc0c5c5d6caca45e65f9f7
intel: Clip to window after calling Driver.TexImage2D

This prevents the width / height from being clipped to the window size before
the texture is allocated.  This matches intelCopyTexImage1D.

This should fix bug #21227

Signed-off-by: Ian Romanick <ian.romanick@intel.com>
src/mesa/drivers/dri/intel/intel_tex_copy.c