Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/gawain/immediate.c
| Context not available. | |||||
| glUniform1f(loc, x); | glUniform1f(loc, x); | ||||
| } | } | ||||
| void immUniform2fv(const char* name, const float pos[2]) | |||||
| { | |||||
| int loc = glGetUniformLocation(imm.bound_program, name); | |||||
| #if TRUST_NO_ONE | |||||
| assert(loc != -1); | |||||
| #endif | |||||
| glUniform2fv(loc, 1, pos); | |||||
| } | |||||
| void immUniform4f(const char* name, float x, float y, float z, float w) | void immUniform4f(const char* name, float x, float y, float z, float w) | ||||
| { | { | ||||
| int loc = glGetUniformLocation(imm.bound_program, name); | int loc = glGetUniformLocation(imm.bound_program, name); | ||||
| Context not available. | |||||