]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_textures.c
greatly improved pointfile command, it now shows a huge beam crosshair at the site...
[xonotic/darkplaces.git] / gl_textures.c
index a05ab290a5bd67fed6f7b136faec492b1fac9154..6bcd55a8a4b51b3665d088b106c5ef16588c0e26 100644 (file)
@@ -343,7 +343,7 @@ static void GL_TextureMode_f (void)
        }
 
        for (i = 0;i < 6;i++)
-               if (!Q_strcasecmp (modes[i].name, Cmd_Argv(1) ) )
+               if (!strcasecmp (modes[i].name, Cmd_Argv(1) ) )
                        break;
        if (i == 6)
        {
@@ -478,7 +478,9 @@ static void r_textures_start(void)
        texturedatamempool = Mem_AllocPool("Texture Storage (not yet uploaded)");
        textureprocessingmempool = Mem_AllocPool("Texture Processing Buffers");
 
-       JPEG_OpenLibrary ();
+       // Disable JPEG screenshots if the DLL isn't loaded
+       if (! JPEG_OpenLibrary ())
+               Cvar_SetValueQuick (&scr_screenshot_jpeg, 0);
 }
 
 static void r_textures_shutdown(void)
@@ -997,7 +999,7 @@ static rtexture_t *R_SetupTexture(rtexturepool_t *rtexturepool, const char *iden
                        {
                                for (i = 0;i < size;i++)
                                {
-                                       if (((qbyte *)&palette[data[i]])[3] == 255)
+                                       if (((qbyte *)&palette[data[i]])[3] < 255)
                                        {
                                                flags |= TEXF_ALPHA;
                                                break;