mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-09 01:01:07 +00:00
Simplify the Intel video hack, make the PowerVR hack do the same
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@831 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
22f426441f
commit
f26daa58c2
3 changed files with 2 additions and 10 deletions
|
@ -176,9 +176,6 @@ void R_Init (void)
|
|||
|
||||
Sky_Init (); //johnfitz
|
||||
Fog_Init (); //johnfitz
|
||||
|
||||
if (isIntelVideo) //intel video workarounds from Baker
|
||||
Cvar_SetQuick (&gl_clear, "1");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -63,8 +63,6 @@ static SDL_Surface *draw_context;
|
|||
static qboolean vid_locked = false; //johnfitz
|
||||
static qboolean vid_changed = false;
|
||||
|
||||
static qboolean fullsbardraw = false;
|
||||
|
||||
static void VID_Menu_Init (void); //johnfitz
|
||||
static void VID_Menu_f (void); //johnfitz
|
||||
static void VID_MenuDraw (void);
|
||||
|
@ -78,7 +76,6 @@ viddef_t vid; // global video state
|
|||
modestate_t modestate = MS_UNINIT;
|
||||
qboolean scr_skipupdate;
|
||||
|
||||
qboolean isIntelVideo = false; //johnfitz -- intel video workarounds from Baker
|
||||
qboolean gl_mtexable = false;
|
||||
qboolean gl_texture_env_combine = false; //johnfitz
|
||||
qboolean gl_texture_env_add = false; //johnfitz
|
||||
|
@ -683,12 +680,12 @@ static void GL_Init (void)
|
|||
GL_CheckExtensions (); //johnfitz
|
||||
|
||||
if (SDL_strncasecmp(gl_renderer,"PowerVR",7)==0)
|
||||
fullsbardraw = true;
|
||||
Cbuf_AddText ("gl_clear 1");
|
||||
//johnfitz -- intel video workarounds from Baker
|
||||
if (!strcmp(gl_vendor, "Intel"))
|
||||
{
|
||||
Con_Printf ("Intel Display Adapter detected\n");
|
||||
isIntelVideo = true;
|
||||
Cbuf_AddText ("gl_clear 1");
|
||||
}
|
||||
//johnfitz
|
||||
}
|
||||
|
|
|
@ -193,8 +193,6 @@ extern qboolean gl_texture_env_combine;
|
|||
extern qboolean gl_texture_env_add; // for GL_EXT_texture_env_add
|
||||
//johnfitz
|
||||
|
||||
extern qboolean isIntelVideo; //johnfitz -- intel video workarounds from Baker
|
||||
|
||||
//johnfitz -- rendering statistics
|
||||
extern int rs_brushpolys, rs_aliaspolys, rs_skypolys, rs_particles, rs_fogpolys;
|
||||
extern int rs_dynamiclightmaps, rs_brushpasses, rs_aliaspasses, rs_skypasses;
|
||||
|
|
Loading…
Reference in a new issue