Fixed handling of Vec3dArray in GLBeginEdnAdapter/ArrayDispatchers.
This commit is contained in:
parent
d7cba048f5
commit
9e903861a2
@ -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;
|
||||
|
@ -429,6 +429,7 @@ void ArrayDispatchers::init()
|
||||
_useGLBeginEndAdapter = false;
|
||||
|
||||
_vertexDispatchers->assignGLBeginEnd<GLfloat>(Array::Vec3ArrayType, &GLBeginEndAdapter::Vertex3fv, 3);
|
||||
_vertexDispatchers->assignGLBeginEnd<GLdouble>(Array::Vec3dArrayType, &GLBeginEndAdapter::Vertex3dv, 3);
|
||||
_normalDispatchers->assignGLBeginEnd<GLfloat>(Array::Vec3ArrayType, &GLBeginEndAdapter::Normal3fv, 3);
|
||||
_colorDispatchers->assignGLBeginEnd<GLubyte>(Array::Vec4ubArrayType, &GLBeginEndAdapter::Color4ubv, 4);
|
||||
_colorDispatchers->assignGLBeginEnd<GLfloat>(Array::Vec4ArrayType, &GLBeginEndAdapter::Color4fv, 4);
|
||||
|
Loading…
Reference in New Issue
Block a user