Re: [Mesa-dev] [PATCH 1/3] mesa: consolidate texture binding code

2015-09-30 Thread Tapani Pälli
Nice cleanup, some style nitpicks (for old code) to consider below. all 3 patches are Reviewed-by: Tapani Pälli On 10/01/2015 12:36 AM, Brian Paul wrote: Before, we were doing the actual _mesa_reference_texobj() call and ctx->Driver.BindTexture() and misc housekeeping in three different places

[Mesa-dev] [PATCH 1/3] mesa: consolidate texture binding code

2015-09-30 Thread Brian Paul
Before, we were doing the actual _mesa_reference_texobj() call and ctx->Driver.BindTexture() and misc housekeeping in three different places. This consolidates the common code in a new bind_texture() function. --- src/mesa/main/texobj.c | 200 +++-- 1 f