X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=dpsoftrast.c;fp=dpsoftrast.c;h=b57129c1c9d1fac110198bc5d5e48444e9baa475;hb=1ecaedbfab3f26a77bd421bcb0db4458cc9645af;hp=a646db35bd13d32da8f143f7d5b75f028e8ca292;hpb=ce130c7da8ce2c1cdf5e19d1823276c5ca5e83b5;p=xonotic%2Fdarkplaces.git diff --git a/dpsoftrast.c b/dpsoftrast.c index a646db35..b57129c1 100644 --- a/dpsoftrast.c +++ b/dpsoftrast.c @@ -1314,7 +1314,8 @@ void DPSOFTRAST_SetTexture(int unitnum, int index) command->texture = texture; dpsoftrast.texbound[unitnum] = texture; - ATOMIC_ADD(texture->binds, dpsoftrast.numthreads); + if (texture) + ATOMIC_ADD(texture->binds, dpsoftrast.numthreads); } void DPSOFTRAST_SetVertexPointer(const float *vertex3f, size_t stride)