Bug of sample V2Mesh

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


Post Reply
bryan05
Halfling
Posts: 77
Joined: Mon Mar 23, 2015 3:57 pm
Location: Vancouver,BC,Canada
x 1

Bug of sample V2Mesh

Post by bryan05 »

hi,
when I run the Sample_v2Mesh, an exception was thrown.

Code: Select all

D3D11 CORRUPTION: ID3D11DeviceContext::CopySubresourceRegion: Sixth parameter is corrupt or NULL [ MISCELLANEOUS CORRUPTION #18: CORRUPTED_PARAMETER6]
the code throw exception is

Code: Select all

        Ogre::MeshSerializer meshSerializer( 0 );
       [b] meshSerializer.exportMesh( v2Mesh.get(), "BarrelExportedModel_inV2.mesh" );[/b]
can someone solve this?
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5296
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1278
Contact:

Re: Bug of sample V2Mesh

Post by dark_sylinc »

Thanks for the bug report. It slipped right under our noses.

The OpenGL rendersystem works ok. The problem is that our D3D11 implementation delays the actual creation of immutable buffers in order to batch all of them together; and thus the actual resource is a null pointer.
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5296
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1278
Contact:

Re: Bug of sample V2Mesh

Post by dark_sylinc »

Bug fix in commit: https://bitbucket.org/sinbad/ogre/commi ... 955a774097.

Thanks for the report.
Post Reply