From ae69a754244c4e475c8d2591772ca8e005071d83 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 18 Feb 2019 11:55:41 +0100 Subject: Update to 5.42 --- hacks/glx/flurry-texture.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'hacks/glx/flurry-texture.c') diff --git a/hacks/glx/flurry-texture.c b/hacks/glx/flurry-texture.c index c787f59..f1b7e36 100644 --- a/hacks/glx/flurry-texture.c +++ b/hacks/glx/flurry-texture.c @@ -53,7 +53,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. static GLubyte smallTextureArray[32][32]; static GLubyte bigTextureArray[256][256][2]; -GLuint theTexture = 0; /* simple smoothing routine */ static void SmoothTexture(void) @@ -187,8 +186,9 @@ static void AverageLastAndFirstTextures(void) } } -void MakeTexture() +GLuint MakeTexture(void) { + GLuint theTexture = 0; int i,j; for (i=0;i<8;i++) { @@ -221,4 +221,5 @@ void MakeTexture() gluBuild2DMipmaps(GL_TEXTURE_2D, 2, 256, 256, GL_LUMINANCE_ALPHA, GL_UNSIGNED_BYTE, bigTextureArray); glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); + return theTexture; } -- cgit v1.2.3-55-g7522