diff --git a/include/osg/GLBeginEndAdapter b/include/osg/GLBeginEndAdapter index 813193c9d..39312e59e 100644 --- a/include/osg/GLBeginEndAdapter +++ b/include/osg/GLBeginEndAdapter @@ -65,6 +65,9 @@ class OSG_EXPORT GLBeginEndAdapter void Vertex3f(GLfloat x, GLfloat y, GLfloat z); void Vertex3fv(const GLfloat* v) { Vertex3f(v[0], v[1], v[2]); } + void Vertex3dv(GLdouble x, GLdouble y, GLdouble z) { Vertex3f(x,y,z); } + void Vertex3dv(const GLdouble* v) { Vertex3f(v[0], v[1], v[2]); } + void Color4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) { _colorAssigned = true; diff --git a/src/osg/ArrayDispatchers.cpp b/src/osg/ArrayDispatchers.cpp index aef3b64a0..f04c1d28d 100644 --- a/src/osg/ArrayDispatchers.cpp +++ b/src/osg/ArrayDispatchers.cpp @@ -429,6 +429,7 @@ void ArrayDispatchers::init() _useGLBeginEndAdapter = false; _vertexDispatchers->assignGLBeginEnd(Array::Vec3ArrayType, &GLBeginEndAdapter::Vertex3fv, 3); + _vertexDispatchers->assignGLBeginEnd(Array::Vec3dArrayType, &GLBeginEndAdapter::Vertex3dv, 3); _normalDispatchers->assignGLBeginEnd(Array::Vec3ArrayType, &GLBeginEndAdapter::Normal3fv, 3); _colorDispatchers->assignGLBeginEnd(Array::Vec4ubArrayType, &GLBeginEndAdapter::Color4ubv, 4); _colorDispatchers->assignGLBeginEnd(Array::Vec4ArrayType, &GLBeginEndAdapter::Color4fv, 4);