- fixed: Voxel setup code wasn't called anymore.

This commit is contained in:
Christoph Oelckers 2019-12-25 00:30:13 +01:00
parent 49c49b2672
commit 5bd32cf769
3 changed files with 3 additions and 3 deletions

View file

@ -1057,6 +1057,7 @@ void polymostSet2dView(void); // sets up GL for 2D drawing
void polymost_glreset(void);
void polymost_precache(int32_t dapicnum, int32_t dapalnum, int32_t datype);
void PrecacheHardwareTextures(int nTile);
void Polymost_Startup();
typedef uint16_t polytintflags_t;

View file

@ -5242,7 +5242,7 @@ static void PolymostProcessVoxels(void)
g_haveVoxels = 2;
OSD_Printf("Generating voxel models for Polymost. This may take a while...\n");
videoNextPage();
//videoNextPage();
for (bssize_t i = 0; i < MAXVOXELS; i++)
{
@ -5257,7 +5257,6 @@ static void PolymostProcessVoxels(void)
void Polymost_Startup()
{
polymost_glreset();
polymost_glinit();
PolymostProcessVoxels();
}

View file

@ -617,7 +617,7 @@ void V_Init2()
C_NewModeAdjust();
videoSetGameMode(vid_fullscreen, SCREENWIDTH, SCREENHEIGHT, 32, 1);
polymost_glinit();
Polymost_Startup();
GLInterface.Init(SCREENHEIGHT);
GLInterface.InitGLState(4, 4/*glmultisample*/);
GLInterface.mSamplers->SetTextureFilterMode(hw_texfilter, hw_anisotropy);