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

SW: Fix USE_OPENGL=0 build

parent f5e52400
#include "build.h"
#include "baselayer.h"
#ifdef _WIN32
# include "windows_inc.h"
......
......@@ -100,6 +100,11 @@ char RTSName[MAXRTSNAMELENGTH];
static int32_t scripthandle = -1;
// stubs to avoid clobbering the user's settings
#ifndef USE_OPENGL
static int32_t gltexfiltermode, glanisotropy, glusetexcompr;
#endif
/*
===================
......@@ -695,6 +700,7 @@ void CONFIG_WriteSetup(void)
SCRIPT_PutNumber(scripthandle, "Screen Setup", "ScreenMode",ud_setup.ScreenMode,FALSE,FALSE);
SCRIPT_PutNumber(scripthandle, "Screen Setup", "ScreenBPP",ud_setup.ScreenBPP,FALSE,FALSE);
SCRIPT_PutNumber(scripthandle, "Screen Setup", "MaxRefreshFreq",maxrefreshfreq,FALSE,FALSE);
SCRIPT_PutNumber(scripthandle, "Screen Setup", "GLTextureMode",gltexfiltermode,FALSE,FALSE);
SCRIPT_PutNumber(scripthandle, "Screen Setup", "GLAnisotropy",glanisotropy,FALSE,FALSE);
SCRIPT_PutNumber(scripthandle, "Screen Setup", "GLUseTextureCompr",glusetexcompr,FALSE,FALSE);
......
......@@ -1069,7 +1069,9 @@ JAnalyzeSprites(tspriteptr_t tspr)
// Take care of autosizing
DoAutoSize(tspr);
#ifdef USE_OPENGL
if (videoGetRenderMode() >= REND_POLYMOST && md_tilehasmodel(tspr->picnum, 0) >= 0 && usemodels) return;
#endif
Bassert((unsigned)tspr->owner < MAXSPRITES);
......
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