From: Brian Paul Date: Thu, 20 Jul 2017 15:57:32 +0000 (-0600) Subject: mesa: remove pointless assignments in init_teximage_fields_ms() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aeade86db5761313f8b8c3c8555d3813d92e92ff;p=mesa.git mesa: remove pointless assignments in init_teximage_fields_ms() The NumSamples and FixedSampleLocation fields are set again later at the end of the function so these earlier assignments aren't needed. Reviewed-by: Ian Romanick Reviewed-by: Samuel Pitoiset --- diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 6b31b6a0cdd..8464b3491ae 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -813,9 +813,6 @@ init_teximage_fields_ms(struct gl_context *ctx, img->Width2 = width - 2 * border; /* == 1 << img->WidthLog2; */ img->WidthLog2 = _mesa_logbase2(img->Width2); - img->NumSamples = 0; - img->FixedSampleLocations = GL_TRUE; - switch(target) { case GL_TEXTURE_1D: case GL_TEXTURE_BUFFER: