Added check for correct format of FBO textures.

Signed-off-by: Prabindh Sundareson <prabu@ti.com>