glx: remove a set but not used variable

total_sent was never used. It was introduced in
fdb07636f2

Fixes a warning in clang

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14252>
This commit is contained in:
Thomas H.P. Andersen 2021-12-18 01:54:59 +01:00 committed by Marge Bot
parent 46a0f6384e
commit 2a5b867594
1 changed files with 0 additions and 2 deletions

View File

@ -706,7 +706,6 @@ emit_DrawArrays_old(GLenum mode, GLint first, GLsizei count)
size_t elements_per_request;
unsigned total_requests = 0;
unsigned i;
size_t total_sent = 0;
pc = emit_DrawArrays_header_old(gc, arrays, &elements_per_request,
@ -746,7 +745,6 @@ emit_DrawArrays_old(GLenum mode, GLint first, GLsizei count)
first += elements_per_request;
total_sent += (size_t) (pc - gc->pc);
__glXSendLargeChunk(gc, req, total_requests, gc->pc, pc - gc->pc);
count -= elements_per_request;