mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-17 12:12:10 -04:00
a bit more debugging
This commit is contained in:
parent
835e22a1e2
commit
0c6e867d50
@ -74,6 +74,12 @@ get_scene() const {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE void GraphicsStateGuardian::
|
||||
modify_state(const RenderState *state) {
|
||||
#ifndef NDEBUG
|
||||
if (gsg_cat.is_spam()) {
|
||||
gsg_cat.spam() << "Modifying GSG state with:\n";
|
||||
state->write(gsg_cat.spam(false), 2);
|
||||
}
|
||||
#endif
|
||||
_state = _state->issue_delta_modify(state, this);
|
||||
}
|
||||
|
||||
@ -91,6 +97,12 @@ modify_state(const RenderState *state) {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE void GraphicsStateGuardian::
|
||||
set_state(const RenderState *state) {
|
||||
#ifndef NDEBUG
|
||||
if (gsg_cat.is_spam()) {
|
||||
gsg_cat.spam() << "Setting GSG state to:\n";
|
||||
state->write(gsg_cat.spam(false), 2);
|
||||
}
|
||||
#endif
|
||||
_state = _state->issue_delta_set(state, this);
|
||||
}
|
||||
|
||||
|
@ -859,7 +859,7 @@ issue_light(const LightAttrib *attrib) {
|
||||
light->bind(this, cur_light_id);
|
||||
|
||||
} else if (cur_light_id == -1) {
|
||||
display_cat.warning()
|
||||
gsg_cat.warning()
|
||||
<< "Failed to bind " << *light << " to id.\n";
|
||||
}
|
||||
}
|
||||
@ -1358,11 +1358,11 @@ read_priorities(void) {
|
||||
ConfigString type_name = (*i).Val();
|
||||
TypeHandle type = TypeRegistry::ptr()->find_type(type_name);
|
||||
if (type == TypeHandle::none()) {
|
||||
display_cat.warning()
|
||||
gsg_cat.warning()
|
||||
<< "Unknown type requested for GSG preference: " << type_name
|
||||
<< "\n";
|
||||
} else {
|
||||
display_cat.debug()
|
||||
gsg_cat.debug()
|
||||
<< "Specifying type " << type << " for GSG preference.\n";
|
||||
factory.add_preferred(type);
|
||||
}
|
||||
|
@ -38,6 +38,7 @@
|
||||
#include "colorWriteAttrib.h"
|
||||
#include "colorBlendAttrib.h"
|
||||
#include "transparencyAttrib.h"
|
||||
#include "config_display.h"
|
||||
|
||||
#include "notify.h"
|
||||
#include "pvector.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user