Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-04-17 15:14:34 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-04-17 18:27:16 +0400
commit69d127cadefbd9da6f8f11e3e32b77baebd20ea4 (patch)
treec41b450ffca9057acf7ef7b6485afa7149297045 /source/blender/editors/space_view3d/drawvolume.c
parent300f4482e8748818ea6867d6c47acde3bb905d6d (diff)
Code cleanup: use const for array args
Diffstat (limited to 'source/blender/editors/space_view3d/drawvolume.c')
-rw-r--r--source/blender/editors/space_view3d/drawvolume.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/space_view3d/drawvolume.c b/source/blender/editors/space_view3d/drawvolume.c
index 32e21a0fbbe..f3088cee63b 100644
--- a/source/blender/editors/space_view3d/drawvolume.c
+++ b/source/blender/editors/space_view3d/drawvolume.c
@@ -116,8 +116,8 @@ static bool convex(const float p0[3], const float up[3], const float a[3], const
}
void draw_smoke_volume(SmokeDomainSettings *sds, Object *ob,
- GPUTexture *tex, float min[3], float max[3],
- int res[3], float dx, float UNUSED(base_scale), float viewnormal[3],
+ GPUTexture *tex, const float min[3], const float max[3],
+ const int res[3], float dx, float UNUSED(base_scale), const float viewnormal[3],
GPUTexture *tex_shadow, GPUTexture *tex_flame)
{
const float ob_sizei[3] = {
@@ -410,9 +410,9 @@ void draw_smoke_volume(SmokeDomainSettings *sds, Object *ob,
}
if (!GPU_non_power_of_two_support()) {
- cor[0] = (float)res[0] / (float)power_of_2_max_i(res[0]);
- cor[1] = (float)res[1] / (float)power_of_2_max_i(res[1]);
- cor[2] = (float)res[2] / (float)power_of_2_max_i(res[2]);
+ cor[0] = (float)res[0] / (float)power_of_2_max_u(res[0]);
+ cor[1] = (float)res[1] / (float)power_of_2_max_u(res[1]);
+ cor[2] = (float)res[2] / (float)power_of_2_max_u(res[2]);
}
cor[0] /= size[0];