Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


csdcsz

Member Since 23 May 2012
Offline Last Active Aug 23 2012 04:22 AM

Posts I've Made

In Topic: directX 11 Debug output warning

25 May 2012 - 02:11 AM

thanks , Tordin and MJP. I will have a try and look up the documents!

In Topic: directX 11 Debug output warning

24 May 2012 - 08:22 PM

wait for reply!
thanks in advance!

In Topic: directX 11 Debug output warning

24 May 2012 - 07:13 AM

oh, i see. when i use a dx object as a function parameter , i should release it at the end of the function, is it? just like this:
void fun(ID3DBuffer* buf)
{
...
...
buf->Release();
buf = 0;
}

is that right?

and if the parameter is the D3D device, can i do it the same?
void fun(ID3DDevice* device)
{
...
...
device->Release();
device = 0;
}

this will be wrong(will release the real device), is it?
but how to clean "ExtRef=25" of the live device?

any words help ,thanks!

PARTNERS