diff options
Diffstat (limited to 'lib/glbase.cc')
-rw-r--r-- | lib/glbase.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/glbase.cc b/lib/glbase.cc index 9c33c54..22cbe3f 100644 --- a/lib/glbase.cc +++ b/lib/glbase.cc @@ -165,6 +165,7 @@ void mogltk::glbase::glVertex(GLdouble x, GLdouble y, GLdouble z, GLdouble w) { } void mogltk::glbase::changeviewport(int x, int y, unsigned int w, unsigned int h) { +#if 0 if ((w == 0) && (h == 0)) { w = GetWidth() - x; h = GetHeight() - y; @@ -174,6 +175,9 @@ void mogltk::glbase::changeviewport(int x, int y, unsigned int w, unsigned int h glViewport(x, y, w, h); if (!engine::base_o->is2D()) gluPerspective(fovy, ratio, 1.0, 1024.0); +#endif + glScissor(x, GetHeight() - y - h - 1, w + 1, h + 1); + glEnable(GL_SCISSOR_TEST); } void mogltk::glbase::changefovy(GLdouble nfoyv) { |