Commit: 79b8242fd1013077018436a0726829b935b88ef3
Author: Mike Erwin
Date:   Tue Oct 4 01:24:33 2016 -0400
Branches: blender2.8
https://developer.blender.org/rB79b8242fd1013077018436a0726829b935b88ef3

Gawain: fix bug in immUniformColor4ubv

Reported by @kgeogeo

===================================================================

M       source/blender/gpu/gawain/immediate.c

===================================================================

diff --git a/source/blender/gpu/gawain/immediate.c 
b/source/blender/gpu/gawain/immediate.c
index 7edc4e2..3fb6fee 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)

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to