Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpuMeshModificationDirect unit test not passing #6

Open
KnIfER opened this issue Feb 7, 2019 · 2 comments
Open

cpuMeshModificationDirect unit test not passing #6

KnIfER opened this issue Feb 7, 2019 · 2 comments

Comments

@KnIfER
Copy link

KnIfER commented Feb 7, 2019

what's wrong here?
cpuMeshModificationDirect... ERROR [ASSERTION] Assertion failed usage != CPU (file e:\xuni\proland-4.0\ork-master\ork\render\mesh.h line 330)

template<class vertex, class index>
Mesh<vertex, index>::Mesh(MeshMode m, MeshUsage usage, int vertexCount, int indiceCount) :
    Object("Mesh"), usage(usage), vertexBuffer(NULL), indexBuffer(NULL), created(false), m(m), buffers(new MeshBuffers())
{
	// Lars added check since CPU mesh(VB) does not allways work:
	// Block this until CPUBuffers are fixed
    // TODO: Remove when CPUBuffers have been fixed
    assert(usage != CPU);
    vertices = new vertex[vertexCount];
    verticesLength = vertexCount;
    verticesCount = 0;
    indices = new index[indiceCount];
    indicesLength = indiceCount;
    indicesCount = 0;
    primitiveRestart = -1;
    patchVertices = 0;
    vertexDataHasChanged = true;
    indexDataHasChanged = true;
}
@KnIfER
Copy link
Author

KnIfER commented Feb 7, 2019

cpuMeshModificationIndices... ERROR [ASSERTION] Assertion failed usage != CPU (file e:\xuni\proland-4.0\ork-master\ork\render\mesh.h line 330) INFO [UI] Status: Using GLEW 2.1.0
Anything else is OK or SKIPPED, but will these two errors effect something in Proland?

@KnIfER
Copy link
Author

KnIfER commented Feb 7, 2019

ptr< Mesh<vec4f, unsigned int> > quad = new Mesh<vec4f, unsigned int>(TRIANGLE_STRIP, CPU);

.....assert(usage != CPU);

well, I don't know what's going on here, but it seems to be a never-passing-test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant