]> git.sesse.net Git - movit/blobdiff - demo.cpp
Fix the widget display in the demo app.
[movit] / demo.cpp
index 3201f1e0abcb0a729fb4cc6671a16e338bc44d15..845a776d20859b67f829ed69e5070d59cf509132 100644 (file)
--- a/demo.cpp
+++ b/demo.cpp
@@ -197,6 +197,13 @@ int main(int argc, char **argv)
        EffectChain chain(WIDTH, HEIGHT);
        glViewport(0, 0, WIDTH, HEIGHT);
 
+       glMatrixMode(GL_PROJECTION);
+       glLoadIdentity();
+       glOrtho(0.0, 1.0, 0.0, 1.0, 0.0, 1.0);
+
+       glMatrixMode(GL_MODELVIEW);
+       glLoadIdentity();
+
        ImageFormat inout_format;
        inout_format.color_space = COLORSPACE_sRGB;
        inout_format.gamma_curve = GAMMA_sRGB;