Doom Shareware WAD

Also attempt to fix the weird tearing behaviour
This commit is contained in:
Simon 2020-03-31 18:17:39 +01:00
parent 981d028d7b
commit 83832c6ae4
6 changed files with 16 additions and 6 deletions

View file

@ -583,7 +583,7 @@ void gl_PreprocessLevel()
if (GLRenderer != NULL)
{
GLRenderer->SetupLevel();
GLRenderer->SetupLevel(true);
}
InitGLRMapinfoData();

View file

@ -196,7 +196,7 @@ void FGLRenderer::Initialize(int width, int height)
mFBID = 0;
mOldFBID = 0;
SetupLevel();
SetupLevel(false);
mShaderManager = new FShaderManager;
mSamplerManager = new FSamplerManager;
@ -375,8 +375,16 @@ int FGLRenderer::ScreenToWindowY(int y)
//
//===========================================================================
void FGLRenderer::SetupLevel()
void FGLRenderer::SetupLevel(bool resetBufferIndices)
{
if (resetBufferIndices)
{
VtxBuff = 0;
NextVtxBuffer();
SkyBuff = 0;
NextSkyBuffer();
}
#ifdef USE_GL_HW_BUFFERS
for (int n = 0; n < nbrHwBuffers; n++)
{

View file

@ -212,7 +212,7 @@ public:
void FlushTextures();
unsigned char *GetTextureBuffer(FTexture *tex, int &w, int &h);
void SetupLevel();
void SetupLevel(bool resetBufferIndices);
void RenderView(player_t* player);

View file

@ -1 +1 @@
qzdoom -iwad wads/DOOM.WAD
qzdoom -iwad wads/DOOM1.WAD

BIN
assets/wads/DOOM1.WAD Normal file

Binary file not shown.

View file

@ -166,7 +166,6 @@ import static android.system.Os.setenv;
//Create all required folders
new File("/sdcard/QzDoom/res").mkdirs();
new File("/sdcard/QzDoom/mods").mkdirs();
new File("/sdcard/QzDoom/wads").mkdirs();
new File("/sdcard/QzDoom/audiopack/snd_fluidsynth").mkdirs();
copy_asset("/sdcard/QzDoom", "res/lzdoom.pk3");
@ -175,6 +174,9 @@ import static android.system.Os.setenv;
copy_asset("/sdcard/QzDoom", "res/brightmaps.pk3");
copy_asset("/sdcard/QzDoom/audiopack", "snd_fluidsynth/fluidsynth.sf2");
//Doom Sharware WAD
copy_asset("/sdcard/QzDoom", "wads/DOOM1.WAD");
//Read these from a file and pass through
commandLineParams = new String("doom");