diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-02-07 15:04:08 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2017-02-11 02:39:09 +0300 |
commit | b4a01e7f4fde191516a6187d781ebdce45cf48b7 (patch) | |
tree | a427e25a640cccb2f8b0c351e140870497cbe298 /source/blender/gpu/gawain | |
parent | 8fbf1c4d77dcf21f2b7d63db51c7b6a950e21993 (diff) |
OpenGL immediate mode: interface_draw.c (cont)
ui_draw_but_COLORBAND
Introduced a new checker shader to be used mostly on transparent areas.
OpenGL immediate mode: interface_draw.c (cont)
ui_draw_but_UNITVEC
Introduced a new shader to be used for simple lighting.
Diffstat (limited to 'source/blender/gpu/gawain')
-rw-r--r-- | source/blender/gpu/gawain/immediate.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/gpu/gawain/immediate.c b/source/blender/gpu/gawain/immediate.c index 5ad5b0c8986..e5ac2dbfcf2 100644 --- a/source/blender/gpu/gawain/immediate.c +++ b/source/blender/gpu/gawain/immediate.c @@ -750,7 +750,7 @@ void immUniform2fv(const char* name, const float data[2]) } void immUniform3f(const char* name, float x, float y, float z) -{ + { int loc = glGetUniformLocation(imm.bound_program, name); #if TRUST_NO_ONE @@ -758,10 +758,10 @@ void immUniform3f(const char* name, float x, float y, float z) #endif glUniform3f(loc, x, y, z); -} + } void immUniform3fv(const char* name, const float data[3]) -{ + { int loc = glGetUniformLocation(imm.bound_program, name); #if TRUST_NO_ONE @@ -769,7 +769,7 @@ void immUniform3fv(const char* name, const float data[3]) #endif glUniform3fv(loc, 1, data); -} + } void immUniform4f(const char* name, float x, float y, float z, float w) { |