Blender Git Commit Log

Git Commits -> Revision 4c95899

Revision 4c95899 by Clément Foucault (master)
January 17, 2019, 18:44 (GMT)
GPU: Rename GPU_shader_get_uniform to GPU_shader_get_uniform_ensure

This is in order to make the API more multithread friendly inside the
draw manager.

GPU_shader_get_uniform will only serve to query the shader interface and
not do any GL call, making it threadsafe.

For now it only print a warning if the uniform was not queried before.

Commit Details:

Full Hash: 4c9589909807f346e23966379f240dd57d057a1d
Parent Commit: 938b08b
Lines Changed: +53, -29

16 Modified Paths:

/source/blender/editors/interface/interface_icons.c (+5, -5) (Diff)
/source/blender/editors/mask/mask_draw.c (+1, -1) (Diff)
/source/blender/editors/screen/glutil.c (+2, -2) (Diff)
/source/blender/editors/space_image/image_draw.c (+3, -3) (Diff)
/source/blender/editors/space_node/drawnode.c (+1, -1) (Diff)
/source/blender/gpu/GPU_shader.h (+1, -0) (Diff)
/source/blender/gpu/GPU_shader_interface.h (+1, -0) (Diff)
/source/blender/gpu/intern/gpu_batch.c (+2, -2) (Diff)
/source/blender/gpu/intern/gpu_codegen.c (+2, -2) (Diff)
/source/blender/gpu/intern/gpu_immediate.c (+3, -3) (Diff)
/source/blender/gpu/intern/gpu_shader.c (+18, -1) (Diff)
/source/blender/gpu/intern/gpu_shader_interface.c (+6, -1) (Diff)
/source/blender/gpu/intern/gpu_viewport.c (+3, -3) (Diff)
/source/blender/python/gpu/gpu_py_shader.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_draw.c (+3, -3) (Diff)
/source/blender/windowmanager/intern/wm_gesture.c (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021