renderer: avoid setting the alpha test uniform twice in RB_T_FillDepthBuffer()

Signed-off-by: Oliver McFadden <omcfadde@gmail.com>
dante: set the EGL swap interval to zero to avoid vsync.

Signed-off-by: Oliver McFadden <omcfadde@gmail.com>
dante: Stray pointer arithmetic (BAD_ALLOC_ARITHMETIC)

Adding an offset to "__builtin_alloca(unsigned long)" might be an
under-allocation.

Pointer arithmetic performed on freshly allocated memory (CWE-119)

CWE: http://cwe.mitre.org/data/definitions/119.html
Signed-off-by: Oliver McFadden <omcfadde@gmail.com>
renderer: tr_shadowbounds.cpp: Uninitialized scalar variable (UNINIT)

Using uninitialized value "rect": field "rect"."zmax" is uninitialized.

In R_CalcIntersectionScissor(idRenderLightLocal const*,
idRenderEntityLocal const*, viewDef_s const*): Use of an uninitialized
variable (CWE-457)

CWE: http://cwe.mitre.org/data/definitions/457.html
Signed-off-by: Oliver McFadden <omcfadde@gmail.com>
renderer: tr_main.cpp: Uninitialized scalar variable (UNINIT)

Using uninitialized value "screenRect": field "screenRect"."zmax" is
uninitialized.

In R_ScreenRectFromViewFrustumBounds(idBounds const&): Use of an
uninitialized variable (CWE-457)

CWE: http://cwe.mitre.org/data/definitions/457.html
Signed-off-by: Oliver McFadden <omcfadde@gmail.com>
renderer: tr_subview.cpp: Uninitialized scalar variable (UNINIT)

Using uninitialized value "scissor": field "scissor"."zmax" is
uninitialized.

In R_GenerateSurfaceSubview(drawSurf_s *): Use of an uninitialized
variable (CWE-457)

CWE: http://cwe.mitre.org/data/definitions/457.html
Signed-off-by: Oliver McFadden <omcfadde@gmail.com>
ui: Window.cpp: Uninitialized scalar variable (UNINIT)

Using uninitialized value "data": field "data"."offset" is uninitialized
when calling "idList<idTransitionData>::Append(idTransitionData const &)".

In idWindow::AddTransition(idWinVar *, idVec4, idVec4, int, float,
float): Use of an uninitialized variable (CWE-457)

CWE: http://cwe.mitre.org/data/definitions/457.html
Signed-off-by: Oliver McFadden <omcfadde@gmail.com>
ui: Window.cpp: Resource leak (RESOURCE_LEAK)

Variable "ev" going out of scope leaks the storage it points to.

In idWindow::Parse(idParser *, bool): Leak of memory or pointers to
system resources (CWE-404)

CWE: http://cwe.mitre.org/data/definitions/404.html
Signed-off-by: Oliver McFadden <omcfadde@gmail.com>
ui: ListWindow.cpp: Resource leak in object (CTOR_DTOR_LEAK)

At (1): Calling allocation function "idListWindow::CommonInit()".
At (2): The constructor allocates field "scroller" of "idListWindow" but
there is no destructor.

In idListWindow::idListWindow(idDeviceContext *, idUserInterfaceLocal*):
Constructor allocates memory but destructor does not free it (CWE-401)

CWE: http://cwe.mitre.org/data/definitions/401.html
Signed-off-by: Oliver McFadden <omcfadde@gmail.com>
ui: GameBustOutWindow.cpp: Resource leak in object (CTOR_DTOR_LEAK)

At (1): Calling allocation function "idGameBustOutWindow::CommonInit()".
At (2): The constructor allocates field "paddle" of
"idGameBustOutWindow" but the destructor and whatever functions it calls
do not free it.

In idGameBustOutWindow::idGameBustOutWindow(idUserInterfaceLocal *):
Constructor allocates memory but destructor does not free it (CWE-401)

CWE: http://cwe.mitre.org/data/definitions/401.html
Signed-off-by: Oliver McFadden <omcfadde@gmail.com>
ui: EditWindow.cpp: Resource leak in object (CTOR_DTOR_LEAK)

At (1): Calling allocation function "idEditWindow::CommonInit()".
At (2): The constructor allocates field "scroller" of "idEditWindow" but
the destructor and whatever functions it calls do not free it.

In idEditWindow::idEditWindow(idUserInterfaceLocal *): Constructor
allocates memory but destructor does not free it (CWE-401)

CWE: http://cwe.mitre.org/data/definitions/401.html
Signed-off-by: Oliver McFadden <omcfadde@gmail.com>
Revert "dante: Stray pointer arithmetic (BAD_ALLOC_ARITHMETIC)"

This reverts commit 28eeebd96d25610890ce10b844241ec65bd73df1.
renderer: avoid naming the texture samplers; instead expose them generically.

Signed-off-by: Oliver McFadden <omcfadde@gmail.com>
Revert "Resource leak in object (CTOR_DTOR_LEAK)"

This reverts commit 7c04673e9151c7e2b128f78154f11e5f8271c6c4.
This reverts commit 0e3581a74a1b7eb7876adb1a40d32dfad7e63c8c.
This reverts commit 681e0b7ee8981a07c0c9ba209bd839c3496d114e.

Signed-off-by: Oliver McFadden <omcfadde@gmail.com>