Add GfxDebug, fix framebuffer and texture.