Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_shader.c
| Context not available. | |||||
| } | } | ||||
| /* We use the same shader index for shaders in the same program. | /* We use the same shader index for shaders in the same program. | ||||
| * So we call this function once before calling for the invidual shaders. */ | * So we call this function once before calling for the individual shaders. */ | ||||
| static int shader_index = 0; | static int shader_index = 0; | ||||
| if (code == NULL) { | if (code == NULL) { | ||||
| shader_index++; | shader_index++; | ||||
| Context not available. | |||||