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:52:03 +0000 (16:52 +0100)
commit16fbd391291de8eddcd01a1a10e6801da299209b
tree53772cbd02a2e2e29b7622e291b81216ffe1c9cd
parent1aef032d438aaa40ec28bf279ad5c089370773f0
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>
(cherry picked from commit 129f311673c99eb912d659023e50bc5f0ef53249)
src/mesa/drivers/dri/intel/intel_tex_copy.c