From c81bc45d0a2fc7700dbc26a60057302198c8e84e Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 20 Oct 2021 18:53:46 -0700 Subject: [PATCH] smyrna: remove unused 'GLDepth' --- cmd/smyrna/smyrnadefs.h | 2 -- cmd/smyrna/viewport.c | 1 - 2 files changed, 3 deletions(-) diff --git a/cmd/smyrna/smyrnadefs.h b/cmd/smyrna/smyrnadefs.h index 2b71e2d7e..95f0e0824 100644 --- a/cmd/smyrna/smyrnadefs.h +++ b/cmd/smyrna/smyrnadefs.h @@ -566,8 +566,6 @@ typedef struct /*texture data */ int texture; /*1 texturing enabled, 0 disabled */ - /*opengl depth value to convert mouse to GL coords */ - float GLDepth; /*stores the info about status of mouse,pressed? what button ? where? */ // mouse_attr mouse; diff --git a/cmd/smyrna/viewport.c b/cmd/smyrna/viewport.c index abac5f70b..7bf720a4d 100644 --- a/cmd/smyrna/viewport.c +++ b/cmd/smyrna/viewport.c @@ -346,7 +346,6 @@ void init_viewport(ViewInfo * view) view->LineWidth = 1; //default view settings , camera is not active - view->GLDepth = 1; //should be set before GetFixedOGLPos(int x, int y,float kts) funtion is used!!!! view->panx = 0; view->pany = 0; view->panz = 0; -- 2.40.0