From 2f15d0f01327d856eb0060c489c41ea7f6058958 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 22 Oct 2019 22:43:07 +0200 Subject: [PATCH] no more local_perspective taken into account for SF_PIXELS --- shaders.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shaders.cpp b/shaders.cpp index bbbef115..34e3337f 100644 --- a/shaders.cpp +++ b/shaders.cpp @@ -330,7 +330,7 @@ void display_data::set_projection(int ed) { } else M[2][2] /= 1000; glhr::projection_multiply(M); - if(nisot::local_perspective_used()) + if(nisot::local_perspective_used() && (shader_flags & SF_BOX)) glhr::projection_multiply(glhr::tmtogl_transpose(nisot::local_perspective)); if(ed) { glhr::glmatrix m = glhr::id;