@@ -395,7 +395,7 @@ def build_legacygl_header(filename, include, class_suffix, output_attribs, gles2
395
395
enum_vals .append (c )
396
396
enum_constants .append (x [i ])
397
397
398
- strs += "NULL }"
398
+ strs += "nullptr }"
399
399
400
400
fd .write (
401
401
"\t \t \t {(uint64_t(1<<" + str (bits ) + ")-1)<<" + str (bitofs ) + "," + str (bitofs ) + "," + strs + "},\n "
@@ -422,7 +422,7 @@ def build_legacygl_header(filename, include, class_suffix, output_attribs, gles2
422
422
conditionals_found .append (x )
423
423
fd .write ("\t \t };\n \n " )
424
424
else :
425
- fd .write ("\t \t static const char **_conditional_strings=NULL ;\n " )
425
+ fd .write ("\t \t static const char **_conditional_strings=nullptr ;\n " )
426
426
427
427
if header_data .uniforms :
428
428
@@ -432,7 +432,7 @@ def build_legacygl_header(filename, include, class_suffix, output_attribs, gles2
432
432
fd .write ('\t \t \t "' + x + '",\n ' )
433
433
fd .write ("\t \t };\n \n " )
434
434
else :
435
- fd .write ("\t \t static const char **_uniform_strings=NULL ;\n " )
435
+ fd .write ("\t \t static const char **_uniform_strings=nullptr ;\n " )
436
436
437
437
if output_attribs :
438
438
if header_data .attributes :
@@ -442,7 +442,7 @@ def build_legacygl_header(filename, include, class_suffix, output_attribs, gles2
442
442
fd .write ('\t \t \t {"' + x [0 ] + '",' + x [1 ] + "},\n " )
443
443
fd .write ("\t \t };\n \n " )
444
444
else :
445
- fd .write ("\t \t static AttributePair *_attribute_pairs=NULL ;\n " )
445
+ fd .write ("\t \t static AttributePair *_attribute_pairs=nullptr ;\n " )
446
446
447
447
feedback_count = 0
448
448
@@ -464,15 +464,15 @@ def build_legacygl_header(filename, include, class_suffix, output_attribs, gles2
464
464
if gles2 :
465
465
pass
466
466
else :
467
- fd .write ("\t \t static const Feedback* _feedbacks=NULL ;\n " )
467
+ fd .write ("\t \t static const Feedback* _feedbacks=nullptr ;\n " )
468
468
469
469
if header_data .texunits :
470
470
fd .write ("\t \t static TexUnitPair _texunit_pairs[]={\n " )
471
471
for x in header_data .texunits :
472
472
fd .write ('\t \t \t {"' + x [0 ] + '",' + x [1 ] + "},\n " )
473
473
fd .write ("\t \t };\n \n " )
474
474
else :
475
- fd .write ("\t \t static TexUnitPair *_texunit_pairs=NULL ;\n " )
475
+ fd .write ("\t \t static TexUnitPair *_texunit_pairs=nullptr ;\n " )
476
476
477
477
if not gles2 and header_data .ubos :
478
478
fd .write ("\t \t static UBOPair _ubo_pairs[]={\n " )
@@ -483,7 +483,7 @@ def build_legacygl_header(filename, include, class_suffix, output_attribs, gles2
483
483
if gles2 :
484
484
pass
485
485
else :
486
- fd .write ("\t \t static UBOPair *_ubo_pairs=NULL ;\n " )
486
+ fd .write ("\t \t static UBOPair *_ubo_pairs=nullptr ;\n " )
487
487
488
488
fd .write ("\t \t static const char _vertex_code[]={\n " )
489
489
for x in header_data .vertex_lines :
0 commit comments