1
0
Fork 0
forked from fte/fteqw

*** empty log message ***

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1853 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-01-12 22:23:03 +00:00
parent af116fcf86
commit 840ab4682d

View file

@ -80,6 +80,7 @@ mpic_t *draw_backtile;
int translate_texture;
int char_texture, char_tex2, default_char_texture;
int missing_texture; //texture used when one is missing.
int cs_texture; // crosshair texture
extern int detailtexture;
@ -995,6 +996,8 @@ TRACE(("dbg: GLDraw_ReInit: Allocating upload buffers\n"));
crosshair.modified=true;
crosshairimage.modified = true;
missing_texture = GL_LoadTexture("no_texture", 16, 16, (unsigned char*)r_notexture_mip + r_notexture_mip->offsets[0], true, false);
GL_SetupSceneProcessingTextures();
start = Hunk_LowMark ();
@ -1678,8 +1681,17 @@ void GLDraw_ShaderImage (int x, int y, int w, int h, float s1, float t1, float s
((int*)draw_mesh_colors)[2] = ((int*)draw_mesh_colors)[0];
((int*)draw_mesh_colors)[3] = ((int*)draw_mesh_colors)[0];
*/
draw_mesh_colors[0][0] = 255;
draw_mesh_colors[0][1] = 255;
draw_mesh_colors[0][2] = 255;
draw_mesh_colors[0][3] = 255;
draw_mesh.colors_array = draw_mesh_colors;
draw_mesh.numvertexes = 4;
draw_mesh.numindexes = 6;
R_PushMesh(&draw_mesh, mb.shader->features | MF_COLORS | MF_NONBATCHED);
R_RenderMeshBuffer ( &mb, false );
draw_mesh.colors_array = NULL;