Was a stray old texture in boundTextures_ in thin3d. Now makes sure to invalidate them, and also make it possible to look up bound framebuffer textures when checking for valid tex parameters.