From Mathias Froehlich, "Attached is a change to the slow path geometry dispatch tables that allows the

use of 3 component float color vectors."
This commit is contained in:
Robert Osfield
2012-04-18 09:56:00 +00:00
parent 25989e73f5
commit 01beb82041
2 changed files with 2 additions and 0 deletions

View File

@@ -432,6 +432,7 @@ void ArrayDispatchers::init()
_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::Vec3ArrayType, &GLBeginEndAdapter::Color3fv, 3);
_colorDispatchers->assignGLBeginEnd<GLfloat>(Array::Vec4ArrayType, &GLBeginEndAdapter::Color4fv, 4);
#ifdef OSG_GL_VERTEX_FUNCS_AVAILABLE