mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 23:12:24 +00:00
- removed RequireGLNodes from FRenderer interface.
It returned true for both renderers anyway.
This commit is contained in:
parent
6cd26dec01
commit
5bdea6278c
5 changed files with 1 additions and 14 deletions
|
@ -1010,7 +1010,6 @@ struct FGLInterface : public FRenderer
|
|||
void RenderTextureView (FCanvasTexture *self, AActor *viewpoint, double fov) override;
|
||||
void PreprocessLevel() override;
|
||||
void CleanLevelData() override;
|
||||
bool RequireGLNodes() override;
|
||||
|
||||
int GetMaxViewPitch(bool down) override;
|
||||
void SetClearColor(int color) override;
|
||||
|
@ -1178,11 +1177,6 @@ void FGLInterface::CleanLevelData()
|
|||
gl_CleanLevelData();
|
||||
}
|
||||
|
||||
bool FGLInterface::RequireGLNodes()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
uint32_t FGLInterface::GetCaps()
|
||||
{
|
||||
// describe our basic feature set
|
||||
|
|
|
@ -3639,7 +3639,7 @@ void P_SetupLevel (const char *lumpname, int position)
|
|||
|
||||
// This is motivated as follows:
|
||||
|
||||
bool RequireGLNodes = Renderer->RequireGLNodes() || am_textured;
|
||||
bool RequireGLNodes = true; // Even the software renderer needs GL nodes now.
|
||||
|
||||
for (i = 0; i < (int)countof(times); ++i)
|
||||
{
|
||||
|
|
|
@ -52,7 +52,6 @@ struct FRenderer
|
|||
virtual void RenderTextureView (FCanvasTexture *tex, AActor *viewpoint, double fov) = 0;
|
||||
virtual void PreprocessLevel() {}
|
||||
virtual void CleanLevelData() {}
|
||||
virtual bool RequireGLNodes() { return false; }
|
||||
|
||||
virtual uint32_t GetCaps() { return 0; }
|
||||
};
|
||||
|
|
|
@ -255,11 +255,6 @@ int FSoftwareRenderer::GetMaxViewPitch(bool down)
|
|||
return (r_polyrenderer) ? int(maxviewpitch) : (down ? MAX_DN_ANGLE : ((cl_oldfreelooklimit) ? MAX_UP_ANGLE : MAX_DN_ANGLE));
|
||||
}
|
||||
|
||||
bool FSoftwareRenderer::RequireGLNodes()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void FSoftwareRenderer::OnModeSet ()
|
||||
{
|
||||
mScene.ScreenResized();
|
||||
|
|
|
@ -25,7 +25,6 @@ struct FSoftwareRenderer : public FRenderer
|
|||
void DrawRemainingPlayerSprites() override;
|
||||
|
||||
int GetMaxViewPitch(bool down) override;
|
||||
bool RequireGLNodes() override;
|
||||
|
||||
void OnModeSet() override;
|
||||
void SetClearColor(int color) override;
|
||||
|
|
Loading…
Reference in a new issue