mesa: rewrite glTexStorage() code
authorBrian Paul <brianp@vmware.com>
Sat, 15 Sep 2012 16:30:20 +0000 (10:30 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 18 Sep 2012 01:49:26 +0000 (19:49 -0600)
commitff24ed09fae56d1bfe844cb71a0aad5e9908cb55
treeae96075538db2e3bb0d35a288b28c2f7bc2a34b9
parente6eaa85a43616ba6f431276ab94a3b19dd524986
mesa: rewrite glTexStorage() code

Simplify the code and make it more like the other glTexImage commands.
Call _mesa_legal_texture_dimensions() to validate width, height, depth.
Call ctx->Driver.TestProxyTexImage() to make sure texture is not too large.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/main/texstorage.c