X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fmain%2Fdrawtex.c;h=6114b3277b03399b5a6abf77d6b272e9c0e0b4ac;hb=9d670fd86cc13df0ddff5c6fcb0835926e9a8088;hp=7c0ec832bb9e584a47f2979ca569a7bb9df1d401;hpb=b76f6d9557ff27140e18cf8aa2b57db8876d5d4d;p=mesa.git diff --git a/src/mesa/main/drawtex.c b/src/mesa/main/drawtex.c index 7c0ec832bb9..6114b3277b0 100644 --- a/src/mesa/main/drawtex.c +++ b/src/mesa/main/drawtex.c @@ -21,6 +21,7 @@ * DEALINGS IN THE SOFTWARE. */ +#include "main/errors.h" #include "main/drawtex.h" #include "main/state.h" #include "main/imports.h" @@ -46,7 +47,7 @@ draw_texture(struct gl_context *ctx, GLfloat x, GLfloat y, GLfloat z, if (ctx->NewState) _mesa_update_state(ctx); - ASSERT(ctx->Driver.DrawTex); + assert(ctx->Driver.DrawTex); ctx->Driver.DrawTex(ctx, x, y, z, width, height); _mesa_set_vp_override(ctx, GL_FALSE);