From a345fe2ae7ea54d3fecdee701364e58c111817c6 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Fri, 4 Jul 2003 14:12:28 +0000
Subject: [PATCH] fix USE_CURRENT_VIEWPORT

---
 Graphics/gl2ps.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Graphics/gl2ps.cpp b/Graphics/gl2ps.cpp
index d70b8f1393..fc3f963a18 100644
--- a/Graphics/gl2ps.cpp
+++ b/Graphics/gl2ps.cpp
@@ -2,7 +2,7 @@
  * GL2PS, an OpenGL to PostScript Printing Library
  * Copyright (C) 1999-2003 Christophe Geuzaine 
  *
- * $Id: gl2ps.cpp,v 1.67 2003-07-03 18:59:52 geuzaine Exp $
+ * $Id: gl2ps.cpp,v 1.68 2003-07-04 14:12:28 geuzaine Exp $
  *
  * E-mail: geuz@geuz.org
  * URL: http://www.geuz.org/gl2ps/
@@ -2000,7 +2000,7 @@ GL2PSDLL_API GLint gl2psBeginPage(const char *title, const char *producer,
   gl2ps->options = options;
 
   if(gl2ps->options & GL2PS_USE_CURRENT_VIEWPORT){
-    glGetIntegerv(GL_VIEWPORT, viewport);
+    glGetIntegerv(GL_VIEWPORT, gl2ps->viewport);
   }
   else{
     for(i = 0; i < 4; i++){
-- 
GitLab