mirror of
https://github.com/aap/librw.git
synced 2025-12-19 17:09:51 +00:00
implemented reinstancing for d3d9
This commit is contained in:
@@ -35,7 +35,7 @@ instance(rw::ObjPipeline *rwpipe, Atomic *atomic)
|
||||
geo->instData = header;
|
||||
header->platform = PLATFORM_GL3;
|
||||
|
||||
header->serialNumber = 0;
|
||||
header->serialNumber = meshh->serialNum;
|
||||
header->numMeshes = meshh->numMeshes;
|
||||
header->primType = meshh->flags == 1 ? GL_TRIANGLE_STRIP : GL_TRIANGLES;
|
||||
header->totalNumVertex = geo->numVertices;
|
||||
|
||||
Reference in New Issue
Block a user