mesa: implement TexImage*Multisample
authorChris Forbes <chrisf@ijw.co.nz>
Sat, 24 Nov 2012 08:47:46 +0000 (21:47 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Fri, 1 Mar 2013 22:35:24 +0000 (11:35 +1300)
commit575d3870bb669f00edaf341900aa72dc6cd997bf
treeb75577db5ca77147f48b1cbf8c498894956c66d6
parent61d42ffef49e0be1d6b5b7565d5e448428360843
mesa: implement TexImage*Multisample

V2: - fix formatting issues
    - generate GL_OUT_OF_MEMORY if teximage cannot be allocated
    - fix for state moving from texobj to image

V3: - remove ridiculous stencil hack
    - alter format check to not allow a base format of STENCIL_INDEX
    - allow width/height/depth to be zero, to deallocate the texture
    - dont forget to call _mesa_update_fbo_texture

V4: - fix indentation
    - don't throw errors on proxy texture targets

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/main/teximage.c