GPU: Rename GPU_shader_get_uniform to GPU_shader_get_uniform_ensure
authorClément Foucault <foucault.clem@gmail.com>
Wed, 16 Jan 2019 03:41:27 +0000 (04:41 +0100)
committerClément Foucault <foucault.clem@gmail.com>
Thu, 17 Jan 2019 18:44:01 +0000 (19:44 +0100)
commit4c9589909807f346e23966379f240dd57d057a1d
tree40bad4807d5b5cdd5e632f00562477bf7bb7754c
parent938b08b33654f6bc3419519fc364021115d19dba
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.
16 files changed:
source/blender/editors/interface/interface_icons.c
source/blender/editors/mask/mask_draw.c
source/blender/editors/screen/glutil.c
source/blender/editors/space_image/image_draw.c
source/blender/editors/space_node/drawnode.c
source/blender/gpu/GPU_shader.h
source/blender/gpu/GPU_shader_interface.h
source/blender/gpu/intern/gpu_batch.c
source/blender/gpu/intern/gpu_codegen.c
source/blender/gpu/intern/gpu_immediate.c
source/blender/gpu/intern/gpu_shader.c
source/blender/gpu/intern/gpu_shader_interface.c
source/blender/gpu/intern/gpu_viewport.c
source/blender/python/gpu/gpu_py_shader.c
source/blender/windowmanager/intern/wm_draw.c
source/blender/windowmanager/intern/wm_gesture.c