gamnit: intro and use indirection to bind the screen framebuffer
[nit.git] / lib / gamnit / depth / shadow.nit
index 75178f5..2bdc3ee 100644 (file)
@@ -112,7 +112,7 @@ redef class App
                end
 
                # Take down, bring back default values
-               glBindFramebuffer(gl_FRAMEBUFFER, shadow_context.screen_framebuffer)
+               bind_screen_framebuffer shadow_context.screen_framebuffer
                glColorMask(true, true, true, true)
        end