use more than one scrap. haven't needed this yet, but it doesn't hurt

This commit is contained in:
Bill Currie 2000-09-24 04:05:09 +00:00
parent 20ff12319a
commit 50b5c7776e

View file

@ -143,7 +143,7 @@ static int numgltextures = 0;
#ifdef gl_draw_scraps
#define MAX_SCRAPS 1
#define MAX_SCRAPS 2
#define BLOCK_WIDTH 256
#define BLOCK_HEIGHT 256
@ -193,8 +193,14 @@ static int Scrap_AllocBlock (int w, int h, int *x, int *y)
static void Scrap_Upload (void)
{
int texnum;
scrap_uploads++;
for (texnum = 0; texnum < MAX_SCRAPS; texnum++) {
glBindTexture (GL_TEXTURE_2D, scrap_texnum);
GL_Upload8 (scrap_texels[0], BLOCK_WIDTH, BLOCK_HEIGHT, false, true);
}
scrap_dirty = false;
}