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:
authorClément Foucault <foucault.clem@gmail.com>2019-05-14 17:31:04 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-05-14 17:31:09 +0300
commit3db428406f69358f7bc81e8f757f733338236a29 (patch)
tree33d948bd875757f126255ed1afe26e4726b1b10e /source/blender/gpu/GPU_vertex_format.h
parentaf088c26409503a53fdc0182038faa6574cfc29f (diff)
Fix T64601 Error division by zero in GPUVertexFormat
The windows compiler use signed int by default for enums so that broke the bit count I carefully did. Forcing uint fixes it.
Diffstat (limited to 'source/blender/gpu/GPU_vertex_format.h')
-rw-r--r--source/blender/gpu/GPU_vertex_format.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/GPU_vertex_format.h b/source/blender/gpu/GPU_vertex_format.h
index b0ff7c1820f..43eec55bca2 100644
--- a/source/blender/gpu/GPU_vertex_format.h
+++ b/source/blender/gpu/GPU_vertex_format.h
@@ -56,8 +56,8 @@ typedef enum {
} GPUVertFetchMode;
typedef struct GPUVertAttr {
- GPUVertFetchMode fetch_mode : 2;
- GPUVertCompType comp_type : 3;
+ uint fetch_mode : 2;
+ uint comp_type : 3;
/* 1 to 4 or 8 or 12 or 16 */
uint comp_len : 5;
/* size in bytes, 1 to 64 */