From 11fa56513b3532647f18c736bf5b2810aaa9e45c Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Sun, 14 May 2017 21:14:56 -0700 Subject: [PATCH] initialize alpha component of color --- examples/ExampleBrowser/OpenGLGuiHelper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ExampleBrowser/OpenGLGuiHelper.cpp b/examples/ExampleBrowser/OpenGLGuiHelper.cpp index 533532a54..51c3c1d93 100644 --- a/examples/ExampleBrowser/OpenGLGuiHelper.cpp +++ b/examples/ExampleBrowser/OpenGLGuiHelper.cpp @@ -1179,11 +1179,11 @@ void OpenGLGuiHelper::autogenerateGraphicsObjects(btDiscreteDynamicsWorld* rbWor createCollisionShapeGraphicsObject(colObj->getCollisionShape()); int colorIndex = colObj->getBroadphaseHandle()->getUid() & 3; - btVector3 color; + btVector4 color; color = sColors[colorIndex]; if (colObj->getCollisionShape()->getShapeType()==STATIC_PLANE_PROXYTYPE) { - color.setValue(1,1,1); + color.setValue(1,1,1,1); } createCollisionObjectGraphicsObject(colObj,color);