X-Git-Url: http://git.mutantstargoat.com?p=demo;a=blobdiff_plain;f=src%2Fmain.cc;h=4e2c72fb853b26240a6590e7c21a8fd44e128143;hp=6b1050b9e33cd32025b9616fc35dbf03d381e46d;hb=9148ff7614b1dc22fd5d1dcf6d74e2fb4ff13706;hpb=0c5fa3525b2c8151bf83a215eee992c257d6fa28 diff --git a/src/main.cc b/src/main.cc index 6b1050b..4e2c72f 100644 --- a/src/main.cc +++ b/src/main.cc @@ -102,7 +102,7 @@ int main(int argc, char **argv) } //TODO - return 0; + //return 0; glfwSetKeyCallback(win, clbk_key); glfwSetCursorPosCallback(win, clbk_motion); @@ -318,6 +318,7 @@ static void clbk_mouse(GLFWwindow *win, int bn, int action, int mods) static void clbk_reshape(GLFWwindow *win, int width, int height) { + gfx_reshape(width, height); gfx_viewport(0, 0, width, height); aspect = (float)width / (float)height; mprojection = calc_projection_matrix(45, aspect, 0.5, 1000.0); @@ -388,4 +389,4 @@ static bool gen_poisson(std::vector &points, float min_dist, float radius) } } return false; -} \ No newline at end of file +}