}
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)
{
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)
{
for (i = 0;i < size;i++)
{
- if (((qbyte *)&palette[data[i]])[3] == 255)
+ if (((qbyte *)&palette[data[i]])[3] < 255)
{
flags |= TEXF_ALPHA;
break;