tcpconnect fixes
lots of hexen2 fixes fixed clipped decals again, still not using any... fixed zips over 2g rewrote bloom to use glsl. should be slightly more usable now. lots more hexen2 fixes git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3957 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
5651e77c30
commit
fb214142a3
91 changed files with 4584 additions and 1270 deletions
|
@ -191,7 +191,8 @@ static gltexture_t *GL_AllocNewGLTexture(char *ident, int w, int h)
|
|||
|
||||
qglGenTextures(1, &glt->texnum.num);
|
||||
|
||||
Hash_Add(&gltexturetable, glt->identifier, glt, (bucket_t*)(glt+1));
|
||||
if (*glt->identifier)
|
||||
Hash_Add(&gltexturetable, glt->identifier, glt, (bucket_t*)(glt+1));
|
||||
return glt;
|
||||
}
|
||||
|
||||
|
@ -456,7 +457,7 @@ TRACE(("dbg: GLDraw_ReInit: Allocating upload buffers\n"));
|
|||
GL_BeginRendering ();
|
||||
TRACE(("dbg: GLDraw_ReInit: SCR_DrawLoading\n"));
|
||||
|
||||
GL_Set2D();
|
||||
GL_Set2D(false);
|
||||
|
||||
qglClear(GL_COLOR_BUFFER_BIT);
|
||||
{
|
||||
|
@ -539,7 +540,7 @@ GL_Set2D
|
|||
Setup as if the screen was 320*200
|
||||
================
|
||||
*/
|
||||
void GL_Set2D (void)
|
||||
void GL_Set2D (qboolean flipped)
|
||||
{
|
||||
extern cvar_t gl_screenangle;
|
||||
float rad, ang;
|
||||
|
@ -563,7 +564,10 @@ void GL_Set2D (void)
|
|||
}
|
||||
else
|
||||
{
|
||||
Matrix4x4_CM_Orthographic(r_refdef.m_projection, 0, vid.width, vid.height, 0, -99999, 99999);
|
||||
if (flipped)
|
||||
Matrix4x4_CM_Orthographic(r_refdef.m_projection, 0, vid.width, 0, vid.height, -99999, 99999);
|
||||
else
|
||||
Matrix4x4_CM_Orthographic(r_refdef.m_projection, 0, vid.width, vid.height, 0, -99999, 99999);
|
||||
Matrix4x4_Identity(r_refdef.m_view);
|
||||
}
|
||||
r_refdef.time = realtime;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue