I am trying to port my engine to D3D11 (because since ever I always used OGL), for that I disabled almost everything, all my shader customization, made a BasicWorkspaceDef.. so I make sure I am not using any glsl stuffs and I am getting this crash:
D3D11 ERROR: ID3D11DeviceContext::CopySubresourceRegion: When offset by the destination coordinates, pSrcBox does not fit on the destination subresource. OffsetSrcBox = { left:0, top:0, front:16, right:16, bottom:16, back:17 }
Code: Select all
1 RaiseException KERNELBASE 0x7ffb3def9149
2 CxxThrowException VCRUNTIME140D 0x7ffb2c6e7b60
3 Ogre::ExceptionFactory::throwException OgreException.h 277 0x7ff71d7aa781
4 Ogre::D3D11StagingTexture::upload BaseProjectDev 0x7ff71dcac765
5 Ogre::ObjCmdBuffer::UploadFromStagingTex::execute OgreObjCmdBuffer.cpp 189 0x7ff71e58579d
6 Ogre::ObjCmdBuffer::execute OgreObjCmdBuffer.cpp 109 0x7ff71e5851ac
7 Ogre::TextureGpuManager::_update OgreTextureGpuManager.cpp 3105 0x7ff71dd55d03
8 Ogre::RenderSystem::_update OgreRenderSystem.cpp 1348 0x7ff71e3c43e1
9 Ogre::CompositorManager2::_updateImplementation OgreCompositorManager2.cpp 758 0x7ff71e0c098b
10 Ogre::RenderSystem::updateCompositorManager OgreRenderSystem.cpp 1357 0x7ff71e3c4461
11 Ogre::CompositorManager2::_update OgreCompositorManager2.cpp 655 0x7ff71e0c0308
12 Ogre::Root::_updateAllRenderTargets OgreRoot.cpp 1578 0x7ff71dcdc422
13 Ogre::Root::renderOneFrame OgreRoot.cpp 1100 0x7ff71dcd9a84
Also I have this piece of code for selecting rendersystem:
Code: Select all
Ogre::String buffer;
if( yUtils::getConfigFileSetting("RenderSystem", buffer) && buffer == "D3D" ) {
Ogre::D3D11Plugin* d3dPlugin = OGRE_NEW Ogre::D3D11Plugin();
Ogre::Root::getSingleton().installPlugin(d3dPlugin);
}
else{
//Install RenderSystem Plugin
Ogre::GL3PlusPlugin* glPlugin = OGRE_NEW Ogre::GL3PlusPlugin();
Ogre::Root::getSingleton().installPlugin(glPlugin);
}
Code: Select all
#include "OgreGL3PlusPlugin.h"
#include "OgreGL3PlusRenderSystem.h"
#include "OgreD3D11Plugin.h"
#include "OgreD3D11RenderSystem.h"
is there a trick to avoid that? although this is 0 important since I´ll probably just keep D3D11 if it gives me better performanceerror: C2011: 'Ogre::FrameBufferDescKey': 'struct' type redefinition
error: C2011: 'Ogre::FrameBufferDescValue': 'struct' type redefinition
thanks!