From 2a08ff7349b82589cc6b805634f0f1b1dad7d259 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 8 Jul 2005 21:52:32 +0000 Subject: [PATCH] fix OpenGL vertex blending --- panda/src/glstuff/glGraphicsStateGuardian_src.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx index 4f47500ab8..3577fdf1c8 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx +++ b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx @@ -1105,11 +1105,12 @@ begin_draw_primitives(const Geom *geom, const GeomMunger *munger, // Set up the transform matrices for vertex blending. nassertr(_supports_vertex_blend, false); GLP(Enable)(GL_VERTEX_BLEND_ARB); - _glVertexBlendARB(animation.get_num_transforms() - 1); + _glVertexBlendARB(animation.get_num_transforms()); const TransformTable *table = _vertex_data->get_transform_table(); if (table != (TransformTable *)NULL) { if (animation.get_indexed_transforms()) { + nassertr(_supports_matrix_palette, false); // We are loading the indexed matrix palette. The ARB decided // to change this interface from that for the list of // nonindexed matrices, to make it easier to load an arbitrary