Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/gawain/immediate.c
| Context not available. | |||||
| glUniform1i(loc, x); | glUniform1i(loc, x); | ||||
| } | } | ||||
| void immGetUniform4fv(const char* name, float params[]) { | |||||
| int loc = glGetUniformLocation(imm.bound_program, name); | |||||
| #if TRUST_NO_ONE | |||||
| assert(loc != -1); | |||||
| #endif | |||||
| glGetUniformfv(imm.bound_program, loc, params); | |||||
| #if TRUST_NO_ONE | |||||
| assert(glGetError() == GL_NO_ERROR); | |||||
merwin: FYI We recently switched away from glGetError. Instead run blender --debug-gpu and it will use… | |||||
punyaAuthorUnsubmitted Not Done Inline ActionsGot rid of these changes. punya: Got rid of these changes. | |||||
| #endif | |||||
| } | |||||
| // --- convenience functions for setting "uniform vec4 color" --- | // --- convenience functions for setting "uniform vec4 color" --- | ||||
| Context not available. | |||||
FYI We recently switched away from glGetError. Instead run blender --debug-gpu and it will use a debug context & report errors directly.