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:
authorMike Erwin <significant.bit@gmail.com>2016-10-04 08:24:33 +0300
committerMike Erwin <significant.bit@gmail.com>2016-10-04 08:24:33 +0300
commit79b8242fd1013077018436a0726829b935b88ef3 (patch)
tree4e45168726110d8e284b5a8694be8b27318fa59e /source/blender/gpu/gawain/immediate.c
parentae44e24fed4d7e83f750af2b62384a039ddb54f2 (diff)
Gawain: fix bug in immUniformColor4ubv
Reported by @kgeogeo
Diffstat (limited to 'source/blender/gpu/gawain/immediate.c')
-rw-r--r--source/blender/gpu/gawain/immediate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/gawain/immediate.c b/source/blender/gpu/gawain/immediate.c
index 7edc4e2caaf..3fb6feeaba5 100644
--- a/source/blender/gpu/gawain/immediate.c
+++ b/source/blender/gpu/gawain/immediate.c
@@ -659,7 +659,7 @@ void immUniformColor3ubv(const unsigned char rgb[3])
void immUniformColor4ubv(const unsigned char rgba[4])
{
const float scale = 1.0f / 255.0f;
- immUniform4f("color", scale * rgba[0], scale * rgba[1], scale * rgba[2], rgba[3]);
+ immUniform4f("color", scale * rgba[0], scale * rgba[1], scale * rgba[2], scale * rgba[3]);
}
void immUniform1i(const char *name, const unsigned int data)