mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
copy it to nq and clean out the commented out code
This commit is contained in:
parent
3b7d356416
commit
f49608b881
2 changed files with 2 additions and 13 deletions
|
@ -84,7 +84,7 @@ R_LineGraph (int x, int y, int *h_vals, int count)
|
|||
|
||||
s = r_graphheight->int_val;
|
||||
|
||||
size = 2 * count;
|
||||
size = s * count;
|
||||
if (size > graph_size[graph_index]) {
|
||||
graph_size[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]);
|
||||
|
||||
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);
|
||||
|
||||
glBegin (GL_QUADS);
|
||||
glTexCoord2f (0, 0);
|
||||
|
|
|
@ -121,12 +121,6 @@ R_LineGraph (int x, int y, int *h_vals, int count)
|
|||
|
||||
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);
|
||||
|
||||
glBegin (GL_QUADS);
|
||||
|
|
Loading…
Reference in a new issue