mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
fix OpenGL vertex blending
This commit is contained in:
parent
ef368fc5ae
commit
2a08ff7349
@ -1105,11 +1105,12 @@ begin_draw_primitives(const Geom *geom, const GeomMunger *munger,
|
|||||||
// Set up the transform matrices for vertex blending.
|
// Set up the transform matrices for vertex blending.
|
||||||
nassertr(_supports_vertex_blend, false);
|
nassertr(_supports_vertex_blend, false);
|
||||||
GLP(Enable)(GL_VERTEX_BLEND_ARB);
|
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();
|
const TransformTable *table = _vertex_data->get_transform_table();
|
||||||
if (table != (TransformTable *)NULL) {
|
if (table != (TransformTable *)NULL) {
|
||||||
if (animation.get_indexed_transforms()) {
|
if (animation.get_indexed_transforms()) {
|
||||||
|
nassertr(_supports_matrix_palette, false);
|
||||||
// We are loading the indexed matrix palette. The ARB decided
|
// We are loading the indexed matrix palette. The ARB decided
|
||||||
// to change this interface from that for the list of
|
// to change this interface from that for the list of
|
||||||
// nonindexed matrices, to make it easier to load an arbitrary
|
// nonindexed matrices, to make it easier to load an arbitrary
|
||||||
|
Loading…
x
Reference in New Issue
Block a user