mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
initialize flags
This commit is contained in:
parent
a2c8f382f3
commit
a760c2ba4f
@ -27,7 +27,9 @@ ShaderAttrib() :
|
|||||||
_shader(NULL),
|
_shader(NULL),
|
||||||
_shader_priority(0),
|
_shader_priority(0),
|
||||||
_auto_shader(false),
|
_auto_shader(false),
|
||||||
_has_shader(false)
|
_has_shader(false),
|
||||||
|
_flags(0),
|
||||||
|
_has_flags(0)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,12 +40,7 @@ make_off() {
|
|||||||
static CPT(RenderAttrib) _off_attrib;
|
static CPT(RenderAttrib) _off_attrib;
|
||||||
if (_off_attrib == 0) {
|
if (_off_attrib == 0) {
|
||||||
ShaderAttrib *attrib = new ShaderAttrib;
|
ShaderAttrib *attrib = new ShaderAttrib;
|
||||||
attrib->_shader = (Shader*)NULL;
|
|
||||||
attrib->_shader_priority = 0;
|
|
||||||
attrib->_auto_shader = false;
|
|
||||||
attrib->_has_shader = true;
|
attrib->_has_shader = true;
|
||||||
attrib->_flags = 0;
|
|
||||||
attrib->_has_flags = 0;
|
|
||||||
_off_attrib = return_new(attrib);
|
_off_attrib = return_new(attrib);
|
||||||
}
|
}
|
||||||
return _off_attrib;
|
return _off_attrib;
|
||||||
@ -62,12 +57,6 @@ make() {
|
|||||||
static CPT(RenderAttrib) _null_attrib;
|
static CPT(RenderAttrib) _null_attrib;
|
||||||
if (_null_attrib == 0) {
|
if (_null_attrib == 0) {
|
||||||
ShaderAttrib *attrib = new ShaderAttrib;
|
ShaderAttrib *attrib = new ShaderAttrib;
|
||||||
attrib->_shader = (Shader*)NULL;
|
|
||||||
attrib->_shader_priority = 0;
|
|
||||||
attrib->_auto_shader = false;
|
|
||||||
attrib->_has_shader = false;
|
|
||||||
attrib->_flags = 0;
|
|
||||||
attrib->_has_flags = 0;
|
|
||||||
_null_attrib = return_new(attrib);
|
_null_attrib = return_new(attrib);
|
||||||
}
|
}
|
||||||
return _null_attrib;
|
return _null_attrib;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user