simpler draw range adjustment (it is mostly useless with vsync anyway)

This commit is contained in:
milek7
2019-03-18 23:27:09 +01:00
parent 4b3bea9ea3
commit 62a3d2f92c
4 changed files with 20 additions and 32 deletions

View File

@@ -64,8 +64,7 @@ void window_resize_callback( GLFWwindow *window, int w, int h ) {
// NOTE: we have two variables which basically do the same thing as we don't have dynamic fullscreen toggle
// TBD, TODO: merge them?
Global.iWindowWidth = w;
Global.iWindowHeight = h;
Global.fDistanceFactor = std::max( 0.5f, h / 768.0f ); // not sure if this is really something we want to use
Global.iWindowHeight = h;
glViewport( 0, 0, w, h );
}