copy it to nq and clean out the commented out code

This commit is contained in:
Bill Currie 2001-05-23 03:33:39 +00:00
parent 3b7d356416
commit f49608b881
2 changed files with 2 additions and 13 deletions

View file

@ -84,7 +84,7 @@ R_LineGraph (int x, int y, int *h_vals, int count)
s = r_graphheight->int_val; s = r_graphheight->int_val;
size = 2 * count; size = s * count;
if (size > graph_size[graph_index]) { if (size > graph_size[graph_index]) {
graph_size[graph_index] = size; graph_size[graph_index] = size;
graph_texels[graph_index] = realloc (graph_texels[graph_index], size); graph_texels[graph_index] = realloc (graph_texels[graph_index], size);
@ -121,12 +121,7 @@ R_LineGraph (int x, int y, int *h_vals, int count)
glBindTexture (GL_TEXTURE_2D, graph_texture[graph_index]); glBindTexture (GL_TEXTURE_2D, graph_texture[graph_index]);
glTexImage2D (GL_TEXTURE_2D, 0, gl_alpha_format, GL_Upload8 (graph_texels[graph_index], graph_width[graph_index], s, 0, 1);
graph_width[graph_index], s, 0, GL_RGBA,
GL_UNSIGNED_BYTE, graph_texels[graph_index]);
glTexParameterf (GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameterf (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glBegin (GL_QUADS); glBegin (GL_QUADS);
glTexCoord2f (0, 0); glTexCoord2f (0, 0);

View file

@ -121,12 +121,6 @@ R_LineGraph (int x, int y, int *h_vals, int count)
glBindTexture (GL_TEXTURE_2D, graph_texture[graph_index]); glBindTexture (GL_TEXTURE_2D, graph_texture[graph_index]);
//glTexImage2D (GL_TEXTURE_2D, 0, gl_alpha_format,
// graph_width[graph_index], s, 0, GL_RGBA,
// GL_UNSIGNED_BYTE, graph_texels[graph_index]);
//glTexParameterf (GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
//glTexParameterf (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
GL_Upload8 (graph_texels[graph_index], graph_width[graph_index], s, 0, 1); GL_Upload8 (graph_texels[graph_index], graph_width[graph_index], s, 0, 1);
glBegin (GL_QUADS); glBegin (GL_QUADS);