Cleanup: Remove "_new" from GPU_generate_pass_new
Not needed anymore since old one has been deleted.
This commit is contained in:
@@ -1670,7 +1670,7 @@ static bool gpu_pass_is_valid(GPUPass *pass)
|
|||||||
return (pass->compiled == false || pass->shader != NULL);
|
return (pass->compiled == false || pass->shader != NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
GPUPass *GPU_generate_pass_new(
|
GPUPass *GPU_generate_pass(
|
||||||
GPUMaterial *material,
|
GPUMaterial *material,
|
||||||
GPUNodeLink *frag_outlink,
|
GPUNodeLink *frag_outlink,
|
||||||
struct GPUVertexAttribs *attribs,
|
struct GPUVertexAttribs *attribs,
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ struct GPUPass {
|
|||||||
|
|
||||||
typedef struct GPUPass GPUPass;
|
typedef struct GPUPass GPUPass;
|
||||||
|
|
||||||
GPUPass *GPU_generate_pass_new(
|
GPUPass *GPU_generate_pass(
|
||||||
GPUMaterial *material,
|
GPUMaterial *material,
|
||||||
GPUNodeLink *frag_outlink, struct GPUVertexAttribs *attribs,
|
GPUNodeLink *frag_outlink, struct GPUVertexAttribs *attribs,
|
||||||
ListBase *nodes,
|
ListBase *nodes,
|
||||||
|
|||||||
@@ -683,7 +683,7 @@ GPUMaterial *GPU_material_from_nodetree(
|
|||||||
GPU_nodes_prune(&mat->nodes, mat->outlink);
|
GPU_nodes_prune(&mat->nodes, mat->outlink);
|
||||||
GPU_nodes_get_vertex_attributes(&mat->nodes, &mat->attribs);
|
GPU_nodes_get_vertex_attributes(&mat->nodes, &mat->attribs);
|
||||||
/* Create source code and search pass cache for an already compiled version. */
|
/* Create source code and search pass cache for an already compiled version. */
|
||||||
mat->pass = GPU_generate_pass_new(
|
mat->pass = GPU_generate_pass(
|
||||||
mat,
|
mat,
|
||||||
mat->outlink,
|
mat->outlink,
|
||||||
&mat->attribs,
|
&mat->attribs,
|
||||||
|
|||||||
Reference in New Issue
Block a user