Revert "Remove mipmap generation"
Revert "Remove mipmap generation"

This reverts commit 37acc6b5b5e188fa7602c9328a4812d33b091471.

Conflicts:
	src/x_client_thumbnail_gl.cpp

jotrk/x-choyce,jotrk/x-choyce