aboutsummaryrefslogtreecommitdiff
path: root/src/GameDraw.cpp
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-09-12 13:15:32 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-09-12 13:15:32 +0700
commit4b4adf45b0326ebd902909c07ea78a397fb01300 (patch)
tree07902fc5b62e63e567adbe145f83fc07b88128a6 /src/GameDraw.cpp
parent53053553629793154247deb594dcc384f872b6f5 (diff)
downloadblackshades-4b4adf45b0326ebd902909c07ea78a397fb01300.tar.gz
Reduce number of glViewport calls
Diffstat (limited to 'src/GameDraw.cpp')
-rw-r--r--src/GameDraw.cpp22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/GameDraw.cpp b/src/GameDraw.cpp
index 9b7c1c5..9848232 100644
--- a/src/GameDraw.cpp
+++ b/src/GameDraw.cpp
@@ -1,3 +1,24 @@
+// Game drawing
+// Copyright (C) 2002 David Rosen
+// Copyright (C) 2003 Ryan C. Gordon
+// Copyright (C) 2003 Steven Fuller
+// Copyright (C) 2021 Nguyễn Gia Phong
+//
+// This file is part of Black Shades.
+//
+// Black Shades is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published
+// by the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Black Shades is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Black Shades. If not, see <https://www.gnu.org/licenses/>.
+
#include "Game.h"
extern int thirdperson;
@@ -37,7 +58,6 @@ int Game::DrawGLScene(void)
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
//"Black Shades"
- ReSizeGLScene(90.0f, 0.1f);
glDisable(GL_TEXTURE_2D);
glDisable(GL_DEPTH_TEST); // Disables Depth Testing
glDisable(GL_CULL_FACE);