Viewports work slightly differently on Vulkan, so set only the
framebuffer flag here and instead check both when applying the state.
void PipelineState::set_framebuffer(const Framebuffer *f)
{
- set(framebuffer, f, FRAMEBUFFER|VIEWPORT);
+ set(framebuffer, f, FRAMEBUFFER);
}
void PipelineState::set_viewport(const Rect *v)
}
}
- if(mask&VIEWPORT)
+ if(mask&(VIEWPORT|FRAMEBUFFER))
{
if(viewport)
glViewport(viewport->left, viewport->bottom, viewport->width, viewport->height);