Commit f5e52400 authored by Evan Ramos's avatar Evan Ramos
Browse files

Fix warnings with USE_OPENGL=0

parent fb9ec43f
......@@ -13204,6 +13204,9 @@ void renderPrepareMirror(int32_t dax, int32_t day, int32_t daz, fix16_t daang, f
#ifdef USE_OPENGL
if (videoGetRenderMode() == REND_POLYMOST)
polymost_prepareMirror(dax, day, daz, daang, dahoriz, dawall);
#else
UNREFERENCED_PARAMETER(daz);
UNREFERENCED_PARAMETER(dahoriz);
#endif
}
......
......@@ -559,6 +559,7 @@ int main(int argc, char *argv[])
#if SDL_MAJOR_VERSION >= 2
#ifdef USE_OPENGL
static int sdlayer_getswapinterval(int const syncMode)
{
static int intervals[] = { -1, 0, 1, 0};
......@@ -577,6 +578,7 @@ static int sdlayer_checkvsync(int checkSync)
}
return checkSync;
}
#endif
int32_t videoSetVsync(int32_t newSync)
{
......
......@@ -652,7 +652,9 @@ static MenuEntry_t ME_SCREENSETUP_CROSSHAIRSIZE = MAKE_MENUENTRY( s_Scale, &MF_R
static int32_t vpsize;
static MenuRangeInt32_t MEO_SCREENSETUP_SCREENSIZE = MAKE_MENURANGE( &vpsize, &MF_Redfont, 0, 0, 0, 1, EnforceIntervals );
#ifdef USE_OPENGL
static MenuOption_t MEO_SCREENSETUP_SCREENSIZE_TWO = MAKE_MENUOPTION( &MF_Redfont, &MEOS_OffOn, &vpsize );
#endif
static MenuEntry_t ME_SCREENSETUP_SCREENSIZE = MAKE_MENUENTRY( "Status bar:", &MF_Redfont, &MEF_BigOptionsRt, &MEO_SCREENSETUP_SCREENSIZE, RangeInt32 );
static MenuRangeInt32_t MEO_SCREENSETUP_TEXTSIZE = MAKE_MENURANGE( &ud.textscale, &MF_Redfont, 100, 400, 0, 16, 2 );
static MenuEntry_t ME_SCREENSETUP_TEXTSIZE = MAKE_MENUENTRY( s_Scale, &MF_Redfont, &MEF_BigOptions_Apply, &MEO_SCREENSETUP_TEXTSIZE, RangeInt32 );
......
......@@ -470,6 +470,8 @@ DoShadows(tspriteptr_t tsp, int viewz, SWBOOL mirror)
New->y += ofs.y;
}
}
#else
UNREFERENCED_PARAMETER(mirror);
#endif
// Check for voxel items and use a round generic pic if so
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment