Fix typo in shader.c
Reset viewport on switching framebuffer
Handle with premultiplied alpha in text_layout