Cleanup: More variables unused in release
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 10 Sep 2018 07:56:14 +0000 (09:56 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 10 Sep 2018 07:56:14 +0000 (09:56 +0200)
source/blender/gpu/intern/gpu_material.c

index b03df2c643c639e1719fa4dabedb791f909010b3..3f5d3282f0cc9e66977ed6474620132589f749e2 100644 (file)
@@ -153,6 +153,7 @@ GPUTexture **gpu_material_ramp_texture_row_set(GPUMaterial *mat, int size, float
        /* In order to put all the colorbands into one 1D array texture,
         * we need them to be the same size. */
        BLI_assert(size == CM_TABLE + 1);
+       UNUSED_VARS_NDEBUG(size);
 
        if (mat->coba_builder == NULL) {
                mat->coba_builder = MEM_mallocN(sizeof(GPUColorBandBuilder), "GPUColorBandBuilder");