You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-misc/rss-glx/files/rss-glx-0.9.1-matrixview-co...

28 lines
518 B

--- a/src/matrixview.c
+++ b/src/matrixview.c
@@ -537,7 +537,12 @@ void load_texture ()
{
long a;
+#ifdef HAVE_LIBBZ2
LOAD_TEXTURE (font, cfont, cfont_compressedsize, cfont_size)
+#else
+ font = (unsigned char*) malloc (cfont_size);
+ memcpy (font, cfont, cfont_size);
+#endif
for (a = 0; a < 131072; a++) {
if ((a >> 9) & 2)
@@ -579,7 +584,11 @@ void ourBuildTextures ()
exit (-1);
}
+#ifdef HAVE_LIBBZ2
FREE_TEXTURE (font)
+#else
+ free (font);
+#endif
glBindTexture (GL_TEXTURE_2D, 3);