Jump to content
  • Advertisement
Sign in to follow this  
keiokrysha

D3D11: CORRUPTION: ID3D11DeviceContext::ClearRenderTargetView: First parameter is corrupt or NULL.

This topic is 2222 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I am encountering a problem in my program, the program can be built sucessfully, but if I try to run it, it pops up a window says "Unhandled exception at 0x77ad15de in akatsuki.exe: 0x0000087D: 0x87d."

And the related output message is:
[source lang="cpp"]D3D11: CORRUPTION: ID3D11DeviceContext::ClearRenderTargetView: First parameter is corrupt or NULL. [ MISCELLANEOUS CORRUPTION #13: CORRUPTED_PARAMETER1 ]
First-chance exception at 0x7689b9bc in akatsuki.exe: 0x0000087D: 0x87d.
Unhandled exception at 0x77ad15de in akatsuki.exe: 0x0000087D: 0x87d.[/source]
The related code to the "CelarRenderTargetView" is:
[source lang="cpp"] g_pImmediateContext->ClearRenderTargetView( g_pRenderTargetView, ClearColor );[/source]
I cannot see any problem here.
And the Visual Studio 2010 automatically opens a new tab with the title "xnamathmatrix.inl(Please see attach files)
Please help, thanks!

Share this post


Link to post
Share on other sites
Advertisement
Insert a breakpoint at the ClearRenderTargetView function line and run it. Does g_pRenderTargetView point to NULL?

If so, the render target wasn't created properly. Also make sure you're setting the render target beforehand. Edited by Waaayoff

Share this post


Link to post
Share on other sites
Hi, it is solved, was a silly mistake, the g_pRenderTargetView is NULL because of "g_pImmediateContext->OMSetRenderTargets" I set it as g_pImmediateContext->OMGetRenderTargets", so the render target was never set.
Thanks.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!