Removed unused variables.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2612 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
d7dbd4bb21
commit
e0e46ada28
5 changed files with 3 additions and 15 deletions
|
@ -73,7 +73,7 @@ static void Upload_Texture_32(LPDIRECTDRAWSURFACE7 surf, unsigned int *data, int
|
|||
{
|
||||
int x, y;
|
||||
int iny;
|
||||
unsigned int *scaled, *row, *inrow;
|
||||
unsigned int *row, *inrow;
|
||||
|
||||
for (y = 0; y < desc.dwHeight; y++)
|
||||
{
|
||||
|
@ -119,15 +119,8 @@ void D3D_MipMap (qbyte *out, qbyte *in, int width, int height)
|
|||
//create a basic shader from a 32bit image
|
||||
void *D3D_LoadTexture_32(char *name, unsigned int *data, int width, int height, int flags)
|
||||
{
|
||||
int x, y;
|
||||
unsigned int *dest;
|
||||
unsigned char swapbuf[4];
|
||||
unsigned char swapbuf2[4];
|
||||
|
||||
static unsigned char mipdata[(MAX_WIDTH/2)*(MAX_HEIGHT/2)][4];
|
||||
|
||||
|
||||
|
||||
DWORD tflags;
|
||||
DWORD twidth = width;
|
||||
DWORD theight = height;
|
||||
|
|
|
@ -618,7 +618,6 @@ static void D3D_DrawSpriteModel (entity_t *e)
|
|||
mspriteframe_t *frame;
|
||||
vec3_t forward, right, up;
|
||||
msprite_t *psprite;
|
||||
qbyte coloursb[4];
|
||||
|
||||
d3dvert_t d3dvert[4];
|
||||
index_t vertindexes[6] = {
|
||||
|
|
|
@ -1243,7 +1243,6 @@ LPDIRECTDRAWSURFACE7 D3D_NewLightmap(void)
|
|||
D3DX_SURFACEFORMAT tformat = D3DX_SF_A8R8G8B8;
|
||||
LPDIRECTDRAWSURFACE7 newsurf;
|
||||
DWORD nummips;
|
||||
DDSURFACEDESC2 desc;
|
||||
|
||||
D3DXCreateTexture(pD3DDev, &tflags, &twidth, &theight, &tformat, NULL, &newsurf, &nummips);
|
||||
if (!newsurf)
|
||||
|
|
|
@ -954,7 +954,6 @@ static void D3D9_DrawSpriteModel (entity_t *e)
|
|||
mspriteframe_t *frame;
|
||||
vec3_t forward, right, up;
|
||||
msprite_t *psprite;
|
||||
qbyte coloursb[4];
|
||||
|
||||
d3dvert_t d3dvert[4];
|
||||
index_t vertindexes[6] = {
|
||||
|
|
|
@ -719,8 +719,8 @@ qboolean D3D9_VID_Init(rendererstate_t *info, unsigned char *palette)
|
|||
extern cvar_t vid_conwidth;
|
||||
extern cvar_t vid_conheight;
|
||||
|
||||
DDGAMMARAMP gammaramp;
|
||||
int i;
|
||||
//DDGAMMARAMP gammaramp;
|
||||
//int i;
|
||||
|
||||
char *CLASSNAME = "FTED3D9QUAKE";
|
||||
WNDCLASS wc = {
|
||||
|
@ -1002,7 +1002,6 @@ void IDirect3DDevice9_SetRenderState(void *pD3DDev9, int D3DRS, int param)
|
|||
|
||||
void D3D9_Set2D (void)
|
||||
{
|
||||
int r;
|
||||
float m[16];
|
||||
D3DVIEWPORT9 vport;
|
||||
// IDirect3DDevice9_EndScene(pD3DDev9);
|
||||
|
@ -1131,7 +1130,6 @@ extern cvar_t gl_contrast;
|
|||
|
||||
void (D3D9_SCR_UpdateScreen) (void)
|
||||
{
|
||||
int err;
|
||||
extern int keydown[];
|
||||
extern cvar_t vid_conheight;
|
||||
int uimenu;
|
||||
|
|
Loading…
Reference in a new issue