diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-12-01 11:36:57 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-12-01 11:36:57 +0300 |
commit | 40f45a7eac620fd8b99b3f29f3d0cac3c855dc84 (patch) | |
tree | b42ed461143b7347d86cefe40d051d0585f460e8 /source/blender/gpu/GPU_batch.h | |
parent | 0f5b53ba4dc03f89b43a633f73a59594e709ab11 (diff) |
Cleanup: redundant NULL checks
Also use unsigned shifting for values not in int range.
Diffstat (limited to 'source/blender/gpu/GPU_batch.h')
-rw-r--r-- | source/blender/gpu/GPU_batch.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/GPU_batch.h b/source/blender/gpu/GPU_batch.h index cf69af11aa6..5f87523829a 100644 --- a/source/blender/gpu/GPU_batch.h +++ b/source/blender/gpu/GPU_batch.h @@ -95,7 +95,7 @@ enum { GPU_BATCH_OWNS_VBO = (1 << 0), /* each vbo index gets bit-shifted */ GPU_BATCH_OWNS_INSTANCES = (1 << 30), - GPU_BATCH_OWNS_INDEX = (1 << 31), + GPU_BATCH_OWNS_INDEX = (1u << 31u), }; GPUBatch *GPU_batch_create_ex(GPUPrimType, GPUVertBuf *, GPUIndexBuf *, uint owns_flag); |