Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_material.c
| Show First 20 Lines • Show All 744 Lines • ▼ Show 20 Lines | #endif | ||||
| mat->flag |= GPU_MATFLAG_UPDATED; | mat->flag |= GPU_MATFLAG_UPDATED; | ||||
| if (success) { | if (success) { | ||||
| GPUShader *sh = GPU_pass_shader_get(mat->pass); | GPUShader *sh = GPU_pass_shader_get(mat->pass); | ||||
| if (sh != NULL) { | if (sh != NULL) { | ||||
| mat->status = GPU_MAT_SUCCESS; | mat->status = GPU_MAT_SUCCESS; | ||||
| gpu_node_graph_free_nodes(&mat->graph); | gpu_node_graph_free_nodes(&mat->graph); | ||||
| } | } | ||||
| else { | |||||
| mat->status = GPU_MAT_FAILED; | |||||
| } | |||||
| } | } | ||||
| else { | else { | ||||
| mat->status = GPU_MAT_FAILED; | mat->status = GPU_MAT_FAILED; | ||||
| GPU_pass_release(mat->pass); | GPU_pass_release(mat->pass); | ||||
| mat->pass = NULL; | mat->pass = NULL; | ||||
| gpu_node_graph_free(&mat->graph); | gpu_node_graph_free(&mat->graph); | ||||
| } | } | ||||
| } | } | ||||
| Show All 14 Lines | |||||