void GLWidget::resizeGL(int width, int height)
{
+ current_width = width;
+ current_height = height;
glViewport(0, 0, width, height);
}
check_error();
glDisable(GL_FRAMEBUFFER_SRGB);
check_error();
- frame.chain->render_to_screen();
+ frame.chain->render_to_fbo(0, current_width, current_height);
check_error();
if (resource_pool == nullptr) {
GLuint vao, program_num;
GLuint position_vbo, texcoord_vbo;
movit::ResourcePool *resource_pool = nullptr;
+ int current_width = 1, current_height = 1;
};
#endif