Skip to content

Commit

Permalink
DX11Renderer throw exception on invalid pipeline even in release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nieznanysprawiciel committed Oct 13, 2019
1 parent aeb1098 commit f00574e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions DX11API/DX11Renderer/DX11Renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,12 @@ namespace sw
#endif


#ifdef _DEBUG
#define ValidatePipeline( ctx ) \
if( IsDebugLayerEnabled() ) \
{ \
if( FAILED( debug_interface->ValidateContext( ctx ) ) ) \
throw std::runtime_error( "Invalid pipeline state before draw call" ); \
}
#else
#define ValidatePipeline( ctx )
#endif


/**@brief Klasa bêdzie renderowaæ w trybie immediate albo deferred.
Expand Down

0 comments on commit f00574e

Please sign in to comment.