Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualmrheisenberg

Posted 06 January 2013 - 03:50 PM

In MAKE_TYPELESS( DXGI_FORMAT format ) it checks for:

DXGI_FORMAT MAKE_TYPELESS( DXGI_FORMAT format ){if( !DXUTIsInGammaCorrectMode() )return format//........

In DXUTIsInGammaCorrectMode() it returns:

GetDXUTState().GetIsInGammaCorrectMode();

In GetIsInGammaCorrectMode(); it just returns a bool member and in the DXUTState object the only place where that bool is referenced is the constructor where it's set to true.

Does this mean that DXUTIsInGammaCorrectMode() is always true no matter what?


#1mrheisenberg

Posted 06 January 2013 - 03:06 PM

In MAKE_TYPELESS( DXGI_FORMAT format ) it checks for:

DXGI_FORMAT MAKE_TYPELESS( DXGI_FORMAT format )
{
if( !DXUTIsInGammaCorrectMode() )
return format
//........

In DXUTIsInGammaCorrectMode() it returns:

GetDXUTState().GetIsInGammaCorrectMode();

In GetIsInGammaCorrectMode(); it just returns a bool member and in the DXUTState object the only place where that bool is referenced is the constructor where it's set to true.

Does this mean that DXUTIsInGammaCorrectMode() is always true no matter what?

 


PARTNERS