Skip to content

Commit

Permalink
Remove C++11-isms
Browse files Browse the repository at this point in the history
accidentally used nullptr instead of NULL, oops..
  • Loading branch information
DanielGibson committed Jul 13, 2020
1 parent 80f9a5c commit f3a4d92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion neo/renderer/RenderSystem_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion neo/renderer/draw_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f3a4d92

Please sign in to comment.