summaryrefslogtreecommitdiffstats
path: root/hacks/glx/flurry-texture.c
diff options
context:
space:
mode:
authorSimon Rettberg2019-02-18 11:55:41 +0100
committerSimon Rettberg2019-02-18 11:55:41 +0100
commitae69a754244c4e475c8d2591772ca8e005071d83 (patch)
tree58b3fa7abc2dcfe3c23e1c0ce108950c720826ab /hacks/glx/flurry-texture.c
parentUpdate gitignore (diff)
downloadxscreensaver-ae69a754244c4e475c8d2591772ca8e005071d83.tar.gz
xscreensaver-ae69a754244c4e475c8d2591772ca8e005071d83.tar.xz
xscreensaver-ae69a754244c4e475c8d2591772ca8e005071d83.zip
Update to 5.42
Diffstat (limited to 'hacks/glx/flurry-texture.c')
-rw-r--r--hacks/glx/flurry-texture.c5
1 files changed, 3 insertions, 2 deletions
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;
}