Open runlevel5 opened 4 years ago
diff --git a/src/opengl.h b/src/opengl.h
index c5262be..cdbfb6d 100644
--- a/src/opengl.h
+++ b/src/opengl.h
@@ -14,6 +14,8 @@
#define OPENGL_COLOR0_ATTRIB_BITINDEX (1 << OPENGL_COLOR0_ATTRIB_INDEX)
#define OPENGL_COLOR1_ATTRIB_BITINDEX (1 << OPENGL_COLOR1_ATTRIB_INDEX)
+extern int WaterFallBase;
+
enum AVP_SHADER_PROGRAM {
AVP_SHADER_PROGRAM_DEFAULT,
AVP_SHADER_PROGRAM_NO_SECONDARY,
diff --git a/src/stubs.c b/src/stubs.c
index 714fd7f..0ebc338 100644
--- a/src/stubs.c
+++ b/src/stubs.c
@@ -109,7 +109,6 @@ void ReloadImageIntoD3DImmediateSurface(IMAGEHEADER* iheader)
int NumberOfLandscapePolygons;
int FMVParticleColour;
int WireFrameMode;
-int WaterFallBase;
void InitDrawTest()
{
thx for the small patch, I can confirm it fixes the glitch. also pinged https://aur.archlinux.org/packages/avp/ as icculus upstream has the same problem.
GCC 10 now enforces:
Example on how to address this GCC10 issue: https://github.com/rednex/rgbds/pull/504
cc @neuromancer