mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge #3890
3890: Remove unused variables r=def- a=Jupeyy ## Checklist - [ ] Tested the change ingame - [ ] Provided screenshots if it is a visual change - [ ] Tested in combination with possibly related configuration options - [ ] Written a unit test if it works standalone, system.c especially - [ ] Considered possible null pointers and out of bounds array indexing - [ ] Changed no physics that affect existing maps - [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional) Co-authored-by: Jupeyy <jupjopjap@gmail.com>
This commit is contained in:
commit
218705b76b
|
@ -134,7 +134,9 @@ class CCommandProcessorFragment_OpenGL2 : public CCommandProcessorFragment_OpenG
|
|||
};
|
||||
std::vector<SBufferContainer> m_BufferContainers;
|
||||
|
||||
#ifndef BACKEND_AS_OPENGL_ES
|
||||
GL_SVertexTex3D m_aStreamVertices[1024 * 4];
|
||||
#endif
|
||||
|
||||
struct SBufferObject
|
||||
{
|
||||
|
|
|
@ -4055,7 +4055,6 @@ void CClient::ToggleWindowVSync()
|
|||
void CClient::LoadFont()
|
||||
{
|
||||
static CFont *pDefaultFont = 0;
|
||||
static bool LoadedFallbackFont = false;
|
||||
char aFilename[512];
|
||||
char aBuff[1024];
|
||||
const char *pFontFile = "fonts/DejaVuSans.ttf";
|
||||
|
@ -4089,7 +4088,6 @@ void CClient::LoadFont()
|
|||
IEngineTextRender *pTextRender = Kernel()->RequestInterface<IEngineTextRender>();
|
||||
FontLoaded = pTextRender->LoadFallbackFont(pDefaultFont, aFilename, pBuf, Size);
|
||||
}
|
||||
LoadedFallbackFont |= FontLoaded;
|
||||
|
||||
if(!FontLoaded)
|
||||
{
|
||||
|
|
|
@ -209,7 +209,6 @@ int CSnapshotDelta::CreateDelta(CSnapshot *pFrom, CSnapshot *pTo, void *pDstData
|
|||
CSnapshotItem *pCurItem;
|
||||
CSnapshotItem *pPastItem;
|
||||
int Count = 0;
|
||||
int SizeCount = 0;
|
||||
|
||||
pDelta->m_NumDeletedItems = 0;
|
||||
pDelta->m_NumUpdateItems = 0;
|
||||
|
@ -279,7 +278,6 @@ int CSnapshotDelta::CreateDelta(CSnapshot *pFrom, CSnapshot *pTo, void *pDstData
|
|||
*pData++ = ItemSize / 4;
|
||||
|
||||
mem_copy(pData, pCurItem->Data(), ItemSize);
|
||||
SizeCount += ItemSize;
|
||||
pData += ItemSize / 4;
|
||||
pDelta->m_NumUpdateItems++;
|
||||
Count++;
|
||||
|
|
Loading…
Reference in a new issue