diff options
author | Brian Paul <[email protected]> | 2009-10-25 18:06:18 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-10-25 18:06:24 -0600 |
commit | 11caea687e3f10ae12d33e44edf84635f73047dd (patch) | |
tree | 36e411b7d118f8033aaccb5a1d148e24bc89306a /src/mesa/state_tracker | |
parent | 355b5bde5056297f4f1636850449b91626958408 (diff) |
mesa: choose texture format in core mesa, not drivers
Call the ctx->Driver.ChooseTextureFormat() function from core Mesa's
_mesa_[Copy]TexImage functions instead of in the driver functions.
One less thing for drivers to do.
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_cb_texture.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index 4397adbc123..e8bb720acc7 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -555,10 +555,6 @@ st_TexImage(GLcontext * ctx, } #endif - /* choose the texture format */ - texImage->TexFormat = st_ChooseTextureFormat(ctx, internalFormat, - format, type); - _mesa_set_fetch_functions(texImage, dims); if (_mesa_is_format_compressed(texImage->TexFormat)) { |