Star Trek Starfleet Academy does not like it when available video memory goes down after creating a system memory resource. It destroys all its textures and recreates them, and in some sitations forgets to recreate one or another texture, resulting in rendering bugs.
I suspect the game is trying to detect focus loss by monitoring for unexpected video memory changes.
---
I am open to renaming WINED3DUSAGE_PRIVATE to something else, like WINED3DUSAGE_NO_VIDMEM_ACCOUNTING. This particular name is ugly long though.
-- v2: ddraw/tests: Add some video memory accounting tests. ddraw: Don't account video memory for sysmem surfaces' draw textures.