minor windows porting probs

This commit is contained in:
David Rose 2001-08-09 19:38:59 +00:00
parent d78b81f540
commit 7c7300ff74
3 changed files with 3 additions and 3 deletions

View File

@ -277,7 +277,7 @@ get_coordinate_system() const {
////////////////////////////////////////////////////////////////////
template<class Transition>
INLINE bool
get_attribute_into(Transition *&ptr, GraphicsStateGuardian *gsg) {
get_attribute_into(Transition *&ptr, const GraphicsStateGuardian *gsg) {
NodeTransition *nt = gsg->get_attribute(Transition::get_class_type());
if (nt == (NodeTransition *)NULL) {
ptr = (Transition *)NULL;

View File

@ -326,7 +326,7 @@ private:
template<class Transition>
INLINE bool
get_attribute_into(Transition *&ptr, GraphicsStateGuardian *gsg);
get_attribute_into(Transition *&ptr, const GraphicsStateGuardian *gsg);
#include "graphicsStateGuardian.I"

View File

@ -1835,7 +1835,7 @@ draw_sprite(GeomSprite *geom, GeomContext *gc) {
LMatrix4f modelview_mat;
const TransformTransition *ctatt;
if (!get_attribute_into(ctatt, this)) {
if (!get_attribute_into(ctatt, this))
modelview_mat = LMatrix4f::ident_mat();
else
modelview_mat = ctatt->get_matrix();