diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-15 11:31:17 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-15 11:31:17 +0400 |
commit | fed6b2bcb75a0d67d1b1266fd13d9a4b89dd1923 (patch) | |
tree | 7d2491890e92fb8e712c54ef897e79324a8150b3 /source/blender/gpu/intern | |
parent | b85056cbf4d0a0cc83db0120599318d368ea8f8c (diff) |
code cleanup: remove paranoid/invalid NULL checks and also reduce some unneeded size_t -> int conversions.
Diffstat (limited to 'source/blender/gpu/intern')
-rw-r--r-- | source/blender/gpu/intern/gpu_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c index 4314a784511..ab3ab0a133e 100644 --- a/source/blender/gpu/intern/gpu_draw.c +++ b/source/blender/gpu/intern/gpu_draw.c @@ -1221,7 +1221,7 @@ void GPU_begin_object_materials(View3D *v3d, RegionView3D *rv3d, Scene *scene, O * - object transparency off: for glsl we draw both in a single pass, and * for solid we don't use transparency at all. */ GMS.use_alpha_pass = (do_alpha_after != NULL); - GMS.is_alpha_pass = (v3d && v3d->transp); + GMS.is_alpha_pass = (v3d->transp != FALSE); if (GMS.use_alpha_pass) *do_alpha_after = FALSE; |