st/mesa: fix regression since a22aba4eae9b29db731487bce90e8292f7e82c72
authorDave Airlie <airlied@redhat.com>
Sun, 24 Apr 2011 07:35:45 +0000 (17:35 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 24 Apr 2011 19:59:47 +0000 (05:59 +1000)
commit863eecd0d892e9e7e01c6bb91f1937a450865bea
treea235b96a8f86b905169be07d86ac2f87dfdb8fee
parent0a9cec3475fb14be8aa5fa66557d338556cd8ed5
st/mesa: fix regression since a22aba4eae9b29db731487bce90e8292f7e82c72

"st/mesa: check image size before copy_image_data_to_texture()" caused
a regression in piglit fbo-generatemipmap-formats test on all gallium drivers.

Level 0 for NPOT textures will not match minified values, so don't do this
check for level 0.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_cb_texture.c