static BOOL warned = FALSE;if(!warned) {ERR("The application tries to lock the render target, but render target locking is disabled\n");warned = TRUE;}
ERR("The application tries to lock the render target, but render target locking is disabled\n");
Why is that useless? It supresses console flooding.