I tried to compile and run, but occurred errors,,,

classic Classic list List threaded Threaded
2 messages Options
Richard Kang Richard Kang
Reply | Threaded
Open this post in threaded view
|

I tried to compile and run, but occurred errors,,,

In  Visual studio 2008,  


Source file : PrimitiveSet.cpp    in osg Project  

void DrawElementsUInt::draw(State& state, bool useVertexBufferObjects) const
{
    if (useVertexBufferObjects)
    {
        const ElementBufferObject* ebo = getElementBufferObject();
        state.bindElementBufferObject(ebo);
        if (ebo)
        {
            glDrawElements(_mode, size(), GL_UNSIGNED_INT, getElementBufferObjectOffset());
        }
        else
        {
            glDrawElements(_mode, size(), GL_UNSIGNED_INT, &front());
        }
    }
    else
    {
        glDrawElements(_mode, size(), GL_UNSIGNED_INT, &front());    <<<<<==================== stop at this line..............
    }
}

What's wrong....?

Thanks,,,




gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: I tried to compile and run, but occurred errors,,,

Richard,

Need more information. What version of OSG? Are you running one of the samples? What is the error?
Glenn Waldron / Pelican Mapping