diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-02-08 18:28:55 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-02-08 18:39:31 +0300 |
commit | 61df9fdb2f74cf035013a62f1b0d01246040fae5 (patch) | |
tree | 7cb101adb4e25369cf458ec121d3f9b37bdd4ada /source/blender/gpu/gawain | |
parent | 2a16a4ee433c155a81d41c69c2fd21668cbb3564 (diff) |
Cleanup: warnings
Diffstat (limited to 'source/blender/gpu/gawain')
-rw-r--r-- | source/blender/gpu/gawain/immediate.c | 14 | ||||
-rw-r--r-- | source/blender/gpu/gawain/vertex_buffer.c | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/gpu/gawain/immediate.c b/source/blender/gpu/gawain/immediate.c index 03e16ca248e..08d85c40e90 100644 --- a/source/blender/gpu/gawain/immediate.c +++ b/source/blender/gpu/gawain/immediate.c @@ -54,7 +54,7 @@ typedef struct { static PER_THREAD bool initialized = false; static PER_THREAD Immediate imm; -void immInit() +void immInit(void) { #if TRUST_NO_ONE assert(!initialized); @@ -80,7 +80,7 @@ void immInit() immActivate(); } -void immActivate() +void immActivate(void) { #if TRUST_NO_ONE assert(initialized); @@ -91,7 +91,7 @@ void immActivate() imm.vao_id = vao_id_alloc(); } -void immDeactivate() +void immDeactivate(void) { #if TRUST_NO_ONE assert(initialized); @@ -104,14 +104,14 @@ void immDeactivate() imm.prev_enabled_attrib_bits = 0; } -void immDestroy() +void immDestroy(void) { immDeactivate(); buffer_id_free(imm.vbo_id); initialized = false; } -VertexFormat* immVertexFormat() +VertexFormat* immVertexFormat(void) { VertexFormat_clear(&imm.vertex_format); return &imm.vertex_format; @@ -134,7 +134,7 @@ void immBindProgram(GLuint program) gpuBindMatrices(program); } -void immUnbindProgram() +void immUnbindProgram(void) { #if TRUST_NO_ONE assert(imm.bound_program != 0); @@ -339,7 +339,7 @@ static void immDrawSetup(void) gpuBindMatrices(imm.bound_program); } -void immEnd() +void immEnd(void) { #if TRUST_NO_ONE assert(imm.prim_type != PRIM_NONE); // make sure we're between a Begin/End pair diff --git a/source/blender/gpu/gawain/vertex_buffer.c b/source/blender/gpu/gawain/vertex_buffer.c index 5f2da60067d..827703403e3 100644 --- a/source/blender/gpu/gawain/vertex_buffer.c +++ b/source/blender/gpu/gawain/vertex_buffer.c @@ -16,7 +16,7 @@ #define KEEP_SINGLE_COPY 1 -VertexBuffer* VertexBuffer_create() +VertexBuffer* VertexBuffer_create(void) { VertexBuffer* verts = malloc(sizeof(VertexBuffer)); VertexBuffer_init(verts); |