X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fapp.cc;h=9f58b5fe88b9d2872f5857bd5aa3d13966714960;hb=7520305c1ff271845cfbb2d824cf6d4a664442dc;hp=07ecdecaf0a43a3630f4f56e6ce65ea57a0852d2;hpb=5c69b226e45df981db338dd859ef1d95e9be8f96;p=laserbrain_demo diff --git a/src/app.cc b/src/app.cc index 07ecdec..9f58b5f 100644 --- a/src/app.cc +++ b/src/app.cc @@ -559,6 +559,12 @@ void app_display() vp_width = win_width; vp_height = win_height; + if(!gfbo && !fb_srgb && sdr_post_gamma) { + glViewport(0, 0, win_width, win_height); + slow_post(sdr_post_gamma); + glUseProgram(0); + } + if(should_swap) { app_swap_buffers(); }