zzogl: kill a couple of gcc warning

This commit is contained in:
Gregory Hainaut 2014-06-13 22:38:04 +02:00
parent eb947dc325
commit cdba010794
2 changed files with 21 additions and 13 deletions

View File

@ -527,23 +527,23 @@ extern char* NamedSaveTex(tex0Info* ptex, int usevid);
typedef struct
{
int lcm;
int mxl;
int mmag;
int mmin;
int mtba;
int l;
int k;
u32 lcm;
u32 mxl;
u32 mmag;
u32 mmin;
u32 mtba;
u32 l;
u32 k;
} tex1Info;
typedef struct
{
int wms;
int wmt;
int minu;
int maxu;
int minv;
int maxv;
u32 wms;
u32 wmt;
u32 minu;
u32 maxu;
u32 minv;
u32 maxv;
} clampInfo;
typedef struct

View File

@ -487,8 +487,12 @@ inline void FlushSetContextTarget(VB& curvb, int context)
{
if (!curvb.zbuf.zmsk)
{
#ifdef NDEBUG
s_DepthRTs.Promote(GetFrameKey(curvb.pdepth));
#else
CRenderTarget* ptemp = s_DepthRTs.Promote(GetFrameKey(curvb.pdepth));
assert(ptemp == curvb.pdepth);
#endif
}
else
{
@ -1668,8 +1672,12 @@ void SetContextTarget(int context)
if (!curvb.zbuf.zmsk)
{
#ifdef NDEBUG
s_DepthRTs.Promote(curvb.pdepth->fbp | (curvb.pdepth->fbw << 16));
#else
CRenderTarget* ptemp = s_DepthRTs.Promote(curvb.pdepth->fbp | (curvb.pdepth->fbw << 16));
assert(ptemp == curvb.pdepth);
#endif
}
else
{