Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_texture.c
| Context not available. | |||||
| int ret = GPU_stack_link(mat, "texture_image", in, out, texlink); | int ret = GPU_stack_link(mat, "texture_image", in, out, texlink); | ||||
| if (ret) { | if (ret) { | ||||
| ImBuf *ibuf = BKE_image_acquire_ibuf(tex->ima, &tex->iuser, NULL); | ImBuf *ibuf = BKE_image_acquire_ibuf(tex->ima, &tex->iuser, NULL, IMA_IBUF_IMA); | ||||
| if (ibuf && (ibuf->colormanage_flag & IMB_COLORMANAGE_IS_DATA) == 0 && | if (ibuf && (ibuf->colormanage_flag & IMB_COLORMANAGE_IS_DATA) == 0 && | ||||
| GPU_material_do_color_management(mat)) | GPU_material_do_color_management(mat)) | ||||
| { | { | ||||
| Context not available. | |||||