public static synchronized void deleteTexturesAndDisplayLists()
    {
        Iterator<?> iterator = displayLists.entrySet().iterator();

        while (iterator.hasNext())
        {
            Entry<?, ?> entry = (Entry<?, ?>)iterator.next();
            GL11.glDeleteLists(((Integer)entry.getKey()).intValue(), ((Integer)entry.getValue()).intValue());
        }

        displayLists.clear();
        deleteTextures();
    }