From f4cd8e8e5f516140c699ee4d0b25ad03d3f606d0 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Wed, 15 Oct 2014 21:46:30 -0600 Subject: [PATCH] Remove dead code --- quakespasm/Quake/gl_mesh.c | 14 -------------- quakespasm/Quake/gl_model.h | 3 --- 2 files changed, 17 deletions(-) diff --git a/quakespasm/Quake/gl_mesh.c b/quakespasm/Quake/gl_mesh.c index 6ca86cd7..c0f696bc 100644 --- a/quakespasm/Quake/gl_mesh.c +++ b/quakespasm/Quake/gl_mesh.c @@ -433,20 +433,6 @@ void GL_MakeAliasModelDisplayLists_VBO (void) } } } - - // create a hunk buffer for the final mesh we'll actually use - { - // vertex/fragment programs interpolate on the GPU and need to access the data directly - unsigned short *hunkndx = (unsigned short *) Hunk_Alloc (sizeof (unsigned short) * pheader->numverts_vbo); - - // move these to aliasmesh struct??? - pheader->vertindexes = (intptr_t) hunkndx - (intptr_t) pheader; - - for (i = 0; i < pheader->numverts_vbo; i++) - { - hunkndx[i] = desc[i].vertindex; - } - } } static char scratchbuf[65536]; diff --git a/quakespasm/Quake/gl_model.h b/quakespasm/Quake/gl_model.h index 00345897..84e68c23 100644 --- a/quakespasm/Quake/gl_model.h +++ b/quakespasm/Quake/gl_model.h @@ -356,9 +356,6 @@ typedef struct { intptr_t meshdesc; intptr_t indexes; int numindexes; - - // only shaders use this - intptr_t vertindexes; // offset to (trivertx_t *) Hunk_Alloc (paliashdr->numposes * paliashdr->vertsperframe * sizeof(trivertx_t)) intptr_t vertexes;