}
}
}
- gl_backend_rebindtextures = true;
}
static int R_CalcTexelDataSize (gltexture_t *glt)
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)
qbyte *prevbuffer;
prevbuffer = data;
+ R_Mesh_EndBatch();
+
CHECKGLERROR
glt->texnum = glt->image->texnum;