mirror of
https://github.com/DrBeef/QuestZDoom.git
synced 2025-04-24 10:08:52 +00:00
Doom Shareware WAD
Also attempt to fix the weird tearing behaviour
This commit is contained in:
parent
981d028d7b
commit
83832c6ae4
6 changed files with 16 additions and 6 deletions
|
@ -583,7 +583,7 @@ void gl_PreprocessLevel()
|
|||
|
||||
if (GLRenderer != NULL)
|
||||
{
|
||||
GLRenderer->SetupLevel();
|
||||
GLRenderer->SetupLevel(true);
|
||||
}
|
||||
|
||||
InitGLRMapinfoData();
|
||||
|
|
|
@ -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++)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
qzdoom -iwad wads/DOOM.WAD
|
||||
qzdoom -iwad wads/DOOM1.WAD
|
BIN
assets/wads/DOOM1.WAD
Normal file
BIN
assets/wads/DOOM1.WAD
Normal file
Binary file not shown.
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue