Jump to content
  • Advertisement
Sign in to follow this  
Adam Turner

CreateRenderTargetView - Giving C2039 error

This topic is 2028 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

I am receiving this error below:
Error 31 error C2039: 'CreateRenderTargetView' : is not a member of 'ID3D11DeviceContext' D:\Development\C++ Project(s)\GameEngine Development Project\GameEngine__0_02\GameEngine__0_02\EngineMain.cpp 272 1 GameEngine__0_02
The compiler also brings this up:
32 IntelliSense: class "ID3D11DeviceContext" has no member "CreateRenderTargetView" d:\Development\C++ Project(s)\GameEngine Development Project\GameEngine__0_02\GameEngine__0_02\EngineMain.cpp 272 19 GameEngine__0_02
I have check over everything and all the libs and correct headers are linked and included.
The code for this is:
m_d3ddevcontext->CreateRenderTargetView(p_D3DBackBuffer, NULL, &D3D_backbuffer);
Please if any one knows why the library doesn't appear to have this function which should clearly be in there as im completely baffled.
Also i you need any more code snippets or information please just ask..

Share this post

Link to post
Share on other sites

There is no such thing as ID3D11DeviceContext::CreateRenderTargetView? There is ID3D11Device::CreateRenderTargetView.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!