From 7d7149ef94571b83e4cbd8e3359e3c3c9aea85c2 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 9 Mar 2014 12:36:00 +0100 Subject: [PATCH] Fix the widget display in the demo app. The demo app forgot to set a projection matrix, and when Movit itself stopped setting one, the widget display broke. --- demo.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/demo.cpp b/demo.cpp index 3201f1e..845a776 100644 --- 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; -- 2.39.2