@@ -75,12 +75,12 @@ namespace
7575
7676 void drawvatris (const vtxarray &va, GLsizei numindices, int offset)
7777 {
78- drawtris (numindices, ( ushort *) 0 + va.eoffset + offset, va.minvert , va.maxvert );
78+ drawtris (numindices, static_cast < ushort *>( nullptr ) + va.eoffset + offset, va.minvert , va.maxvert );
7979 }
8080
8181 void drawvaskytris (const vtxarray &va)
8282 {
83- drawtris (va.sky , ( ushort *) 0 + va.skyoffset , va.minvert , va.maxvert );
83+ drawtris (va.sky , static_cast < ushort *>( nullptr ) + va.skyoffset , va.minvert , va.maxvert );
8484 }
8585
8686 // /////// view frustrum culling ///////////////////////
@@ -1096,7 +1096,7 @@ namespace
10961096 ushort len = curbatch->es .length ;
10971097 if (len)
10981098 {
1099- drawtris (len, ( ushort *) 0 + curbatch->va ->eoffset + curbatch->offset , curbatch->es .minvert , curbatch->es .maxvert );
1099+ drawtris (len, static_cast < ushort *>( nullptr ) + curbatch->va ->eoffset + curbatch->offset , curbatch->es .minvert , curbatch->es .maxvert );
11001100 vtris += len/3 ;
11011101 }
11021102 if (curbatch->batch < 0 )
@@ -2349,7 +2349,7 @@ void startbb(bool mask)
23492349 setupbb ();
23502350 gle::bindvbo (bbvbo);
23512351 gle::bindebo (bbebo);
2352- gle::vertexpointer (sizeof (vec), ( const vec *) 0 );
2352+ gle::vertexpointer (sizeof (vec), nullptr );
23532353 gle::enablevertex ();
23542354 SETSHADER (bbquery,);
23552355 if (mask)
@@ -2375,7 +2375,7 @@ void drawbb(const ivec &bo, const ivec &br)
23752375{
23762376 LOCALPARAMF (bborigin, bo.x , bo.y , bo.z );
23772377 LOCALPARAMF (bbsize, br.x , br.y , br.z );
2378- glDrawRangeElements (GL_TRIANGLES, 0 , 8 -1 , 3 *2 *6 , GL_UNSIGNED_SHORT, (ushort *) 0 );
2378+ glDrawRangeElements (GL_TRIANGLES, 0 , 8 -1 , 3 *2 *6 , GL_UNSIGNED_SHORT, nullptr );
23792379 xtraverts += 8 ;
23802380}
23812381
@@ -3214,7 +3214,7 @@ void rendershadowmesh(const shadowmesh *m)
32143214 gle::bindvbo (d.vbuf );
32153215 vbuf = d.vbuf ; gle::vertexpointer (sizeof (vec), 0 );
32163216 }
3217- drawtris (3 *d.tris , ( ushort *) 0 + d.offset , d.minvert , d.maxvert );
3217+ drawtris (3 *d.tris , static_cast < ushort *>( nullptr ) + d.offset , d.minvert , d.maxvert );
32183218 xtravertsva += 3 *d.tris ;
32193219 draw = d.next ;
32203220 }
0 commit comments