diff --git a/panda/src/pgraph/nodePath.cxx b/panda/src/pgraph/nodePath.cxx index caea8ab2a9..775aa17f5b 100644 --- a/panda/src/pgraph/nodePath.cxx +++ b/panda/src/pgraph/nodePath.cxx @@ -3138,7 +3138,7 @@ get_texture(TextureStage *stage) const { // Description: //////////////////////////////////////////////////////////////////// void NodePath:: -set_shader(Shader *sha, int priority) { +set_shader(const Shader *sha, int priority) { nassertv_always(!is_empty()); const RenderAttrib *attrib = diff --git a/panda/src/pgraph/nodePath.h b/panda/src/pgraph/nodePath.h index 193225deb4..f2031bf3e8 100644 --- a/panda/src/pgraph/nodePath.h +++ b/panda/src/pgraph/nodePath.h @@ -564,7 +564,7 @@ PUBLISHED: Texture *get_texture() const; Texture *get_texture(TextureStage *stage) const; - void set_shader(Shader *sha, int priority = 0); + void set_shader(const Shader *sha, int priority = 0); void set_shader_off(int priority = 0); void clear_shader(); void set_shader_input(const ShaderInput *inp);