{"action":"created","issue":{"url":"https://api.github.com/repos/paroj/ogre/issues/32","labels_url":"https://api.github.com/repos/paroj/ogre/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/paroj/ogre/issues/32/comments","events_url":"https://api.github.com/repos/paroj/ogre/issues/32/events","html_url":"https://github.com/paroj/ogre/issues/32","id":119369064,"number":32,"title":"[OGRE-150] DX9 RS Bug: destroying the dummy render window breaks almost all geometry","user":{"login":"paroj","id":4941802,"avatar_url":"https://avatars.githubusercontent.com/u/4941802?v=3","gravatar_id":"","url":"https://api.github.com/users/paroj","html_url":"https://github.com/paroj","followers_url":"https://api.github.com/users/paroj/followers","following_url":"https://api.github.com/users/paroj/following{/other_user}","gists_url":"https://api.github.com/users/paroj/gists{/gist_id}","starred_url":"https://api.github.com/users/paroj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paroj/subscriptions","organizations_url":"https://api.github.com/users/paroj/orgs","repos_url":"https://api.github.com/users/paroj/repos","events_url":"https://api.github.com/users/paroj/events{/privacy}","received_events_url":"https://api.github.com/users/paroj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/paroj/ogre/labels/RenderSystem%20D3D9","name":"RenderSystem D3D9","color":"cf9031"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/paroj/ogre/milestones/2","html_url":"https://github.com/paroj/ogre/milestones/1.10.0","labels_url":"https://api.github.com/repos/paroj/ogre/milestones/2/labels","id":1433960,"number":2,"title":"1.10.0","description":null,"creator":{"login":"paroj","id":4941802,"avatar_url":"https://avatars.githubusercontent.com/u/4941802?v=3","gravatar_id":"","url":"https://api.github.com/users/paroj","html_url":"https://github.com/paroj","followers_url":"https://api.github.com/users/paroj/followers","following_url":"https://api.github.com/users/paroj/following{/other_user}","gists_url":"https://api.github.com/users/paroj/gists{/gist_id}","starred_url":"https://api.github.com/users/paroj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paroj/subscriptions","organizations_url":"https://api.github.com/users/paroj/orgs","repos_url":"https://api.github.com/users/paroj/repos","events_url":"https://api.github.com/users/paroj/events{/privacy}","received_events_url":"https://api.github.com/users/paroj/received_events","type":"User","site_admin":false},"open_issues":18,"closed_issues":1,"state":"open","created_at":"2015-11-29T16:10:40Z","updated_at":"2015-11-29T16:27:28Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-11-29T16:27:28Z","updated_at":"2015-11-29T16:27:57Z","closed_at":null,"body":"<b>[reporter=\"xavyiy\", created=\"Fri, 22 Feb 2013 16:56:51 +0100\"]</b>\n<p>This is a big problem since in the Ogre3d DX9 RS you need to destroy the dummy render window before switching to fullscreen any other existent render window (otherwise you get a swap chain expection). (More info: <a href=\"http://www.ogre3d.org/forums/viewtopic.php?f=4&t=58142#p392888\" class=\"external-link\" rel=\"nofollow\">http://www.ogre3d.org/forums/viewtopic.php?f=4&t=58142#p392888</a> )</p>\n\n<p>The problem seems to be here since Ogre 1.8, I'm sure it worked in 1.7...</p>\n\n<p>I've attached a .cpp which shows the problem, comment the line #136, mRoot->destroyRenderTarget(mWindow), in order to see how it should look!</p>\n\n<p>Hope it's going to be an easy bug to catch! <img class=\"emoticon\" src=\"https://ogre3d.atlassian.net/images/icons/emoticons/smile.png\" height=\"16\" width=\"16\" align=\"absmiddle\" alt=\"\" border=\"0\"/></p>\n\n\n\n\n"},"comment":{"url":"https://api.github.com/repos/paroj/ogre/issues/comments/160430345","html_url":"https://github.com/paroj/ogre/issues/32#issuecomment-160430345","issue_url":"https://api.github.com/repos/paroj/ogre/issues/32","id":160430345,"user":{"login":"paroj","id":4941802,"avatar_url":"https://avatars.githubusercontent.com/u/4941802?v=3","gravatar_id":"","url":"https://api.github.com/users/paroj","html_url":"https://github.com/paroj","followers_url":"https://api.github.com/users/paroj/followers","following_url":"https://api.github.com/users/paroj/following{/other_user}","gists_url":"https://api.github.com/users/paroj/gists{/gist_id}","starred_url":"https://api.github.com/users/paroj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paroj/subscriptions","organizations_url":"https://api.github.com/users/paroj/orgs","repos_url":"https://api.github.com/users/paroj/repos","events_url":"https://api.github.com/users/paroj/events{/privacy}","received_events_url":"https://api.github.com/users/paroj/received_events","type":"User","site_admin":false},"created_at":"2015-11-29T16:27:57Z","updated_at":"2015-11-29T16:27:57Z","body":"<b><i>[author=\"xavyiy\", created=\"Tue, 26 Feb 2013 00:30:55 +0100\"]</i></b>\n<p>Win!!! <img class=\"emoticon\" src=\"https://ogre3d.atlassian.net/images/icons/emoticons/tongue.png\" height=\"16\" width=\"16\" align=\"absmiddle\" alt=\"\" border=\"0\"/></p>\n\n<p>Solution:</p>\n\n<p>***1) ogred3d9hardwareindexbuffer.cpp(66):</p>\n\n<p>Change:</p>\n\n<p>if (mUsage & HardwareBuffer::HBU_WRITE_ONLY && D3D9RenderSystem::getResourceManager()->getAutoHardwareBufferManagement())</p>\n\n<p>To</p>\n\n<p>if (mUsage & HardwareBuffer::HBU_WRITE_ONLY || D3D9RenderSystem::getResourceManager()->getAutoHardwareBufferManagement())</p>\n\n<p>***2) ogred3d9hardwarevertexbuffer.cpp(66)</p>\n\n<p>Change:</p>\n\n<p>if (mUsage & HardwareBuffer::HBU_WRITE_ONLY && D3D9RenderSystem::getResourceManager()->getAutoHardwareBufferManagement())</p>\n\n<p>To</p>\n\n<p>if (mUsage & HardwareBuffer::HBU_WRITE_ONLY || D3D9RenderSystem::getResourceManager()->getAutoHardwareBufferManagement())</p>\n\n<p>(Replace && by ||) </p>\n\n<p>And also make sure you set selectedRS->setConfigOption(\"Multi device memory hint\", \"Auto hardware buffers management\"); if using multiple render windows!</p>"}}