Remove C++11-isms

accidentally used nullptr instead of NULL, oops..
This commit is contained in:
Daniel Gibson 2020-07-13 05:34:13 +02:00
parent 80f9a5ca52
commit f3a4d92d33
2 changed files with 2 additions and 2 deletions

View file

@ -402,7 +402,7 @@ static void R_CheckPortableExtensions( void ) {
} else {
// TODO: there was an extension by ATI providing glStencilOpSeparateATI - do we care?
common->Printf( "... don't have GL2.0+ glStencilOpSeparate()\n" );
qglStencilOpSeparate = nullptr;
qglStencilOpSeparate = NULL;
}
// ARB_vertex_buffer_object

View file

@ -1144,7 +1144,7 @@ static void RB_T_Shadow( const drawSurf_t *surf ) {
// DG: that bloody patent on depth-fail stencil shadows has finally expired on 2019-10-13,
// so use them (see https://patents.google.com/patent/US6384822B1/en for expiration status)
bool useStencilOpSeperate = r_useStencilOpSeparate.GetBool() && qglStencilOpSeparate != nullptr;
bool useStencilOpSeperate = r_useStencilOpSeparate.GetBool() && qglStencilOpSeparate != NULL;
if( !r_useCarmacksReverse.GetBool() ) {
if( useStencilOpSeperate ) {
// not using z-fail, but using qglStencilOpSeparate()