mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-26 05:51:36 +00:00
Correct GL_4_BYTES to GLuint. Also some whitespace/comment cleanups
This commit is contained in:
parent
8d579b7a0b
commit
87b5defa64
1 changed files with 5 additions and 10 deletions
|
@ -489,12 +489,7 @@ Draw_Init (void)
|
|||
draw_chars[i] = 255; // proper transparent color
|
||||
|
||||
// now turn them into textures
|
||||
char_texture = GL_LoadTexture ("charset", 128, 128, draw_chars, false, true, 1); // 1999-12-27
|
||||
// Conwidth/height
|
||||
// charset
|
||||
// fix
|
||||
// by
|
||||
// TcT
|
||||
char_texture = GL_LoadTexture ("charset", 128, 128, draw_chars, false, true, 1); // 1999-12-27 Conwidth/height charset fix by TcT
|
||||
cs_texture = GL_LoadTexture ("crosshair", 8, 8, cs_data, false, true, 1);
|
||||
// char_texture = GL_LoadTexture ("charset", 128, 128, draw_chars, false, true, 1); // 1999-12-27 Conwidth/height charset fix by TcT
|
||||
|
||||
|
@ -1178,7 +1173,7 @@ GL_Upload32 (unsigned int *data, int width, int height, qboolean mipmap,
|
|||
if (!
|
||||
(scaled =
|
||||
malloc (scaled_width * scaled_height *
|
||||
sizeof (GL_4_BYTES)))) Sys_Error ("GL_LoadTexture: too big");
|
||||
sizeof (GLuint)))) Sys_Error ("GL_LoadTexture: too big");
|
||||
|
||||
samples = alpha ? gl_alpha_format : gl_solid_format;
|
||||
|
||||
|
@ -1400,7 +1395,7 @@ GL_LoadTexture (char *identifier, int width, int height, byte * data,
|
|||
GL_Upload8 (data, width, height, mipmap, alpha);
|
||||
break;
|
||||
case 4:
|
||||
GL_Upload32 ((unsigned int *) data, width, height, mipmap, alpha);
|
||||
GL_Upload32 ((GLuint *) data, width, height, mipmap, alpha);
|
||||
break;
|
||||
default:
|
||||
Sys_Error ("SetupTexture: unknown bytesperpixel %i",
|
||||
|
|
Loading…
Reference in a new issue