Various improvements

Includes texture, frame buffer and instancing changesSigned-off-by:
Aleksi Sapon <QcTechs@gmail.com>