mesa: set reasonable defaults in update_wrapper
authorMarek Olšák <maraeo@gmail.com>
Mon, 25 Apr 2011 23:53:20 +0000 (01:53 +0200)
committerMarek Olšák <maraeo@gmail.com>
Fri, 29 Apr 2011 09:31:55 +0000 (11:31 +0200)
commit1d5f16ff8fae936f2e920800b169cf7736a8052a
treee9c90f1010903d91f5e8cee55ccb442366e4551e
parent608a4a17feea9fba2812d4e5c01dd6dbadc5d6e0
mesa: set reasonable defaults in update_wrapper

I was wondering why I had been getting GL_RGBA for GL_RGB9_E5.

Instead of setting GL_RGBA and CHAN_TYPE for most types,
use the helper functions to obtain the info.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/texrender.c