X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=radiant%2Fbrush_primit.h;h=897f19f9f6d2801862aeec39c1e336a2443b9f37;hb=8235a81ac19d977a5b0093a6922d522a2e265531;hp=3ba75bb5d03da6d6a36f1931aeafd03fe21845e8;hpb=5e882b271373293f57552853a963165fec9bba8f;p=xonotic%2Fnetradiant.git diff --git a/radiant/brush_primit.h b/radiant/brush_primit.h index 3ba75bb5..897f19f9 100644 --- a/radiant/brush_primit.h +++ b/radiant/brush_primit.h @@ -24,6 +24,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include "math/vector.h" #include "itexdef.h" +#include "debugging/debugging.h" // Timo // new brush primitive texdef struct brushprimit_texdef_t @@ -51,6 +52,8 @@ struct brushprimit_texdef_t void addScale(std::size_t width, std::size_t height) { #if 1 + ASSERT_MESSAGE(width > 0, "shader-width is 0"); + ASSERT_MESSAGE(height > 0, "shader-height is 0"); coords[0][0] /= width; coords[0][1] /= width; coords[0][2] /= width;