gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz/gfx/libos Os-GLX.cxx


From: Tuomas J. Lukka
Subject: [Gzz-commits] gzz/gfx/libos Os-GLX.cxx
Date: Mon, 27 Jan 2003 08:55:02 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Tuomas J. Lukka <address@hidden>        03/01/27 08:55:01

Modified files:
        gfx/libos      : Os-GLX.cxx 

Log message:
        OOOOOOPS

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/libos/Os-GLX.cxx.diff?tr1=1.23&tr2=1.24&r1=text&r2=text

Patches:
Index: gzz/gfx/libos/Os-GLX.cxx
diff -u gzz/gfx/libos/Os-GLX.cxx:1.23 gzz/gfx/libos/Os-GLX.cxx:1.24
--- gzz/gfx/libos/Os-GLX.cxx:1.23       Sat Jan 25 08:45:03 2003
+++ gzz/gfx/libos/Os-GLX.cxx    Mon Jan 27 08:55:01 2003
@@ -375,14 +375,14 @@
            DBG(dbg) << "setcurrent pixmap "<<pix<<" "<<ws->pxContext<<"\n";
            bool ret = glXMakeContextCurrent(ws->dpy, pix, pix, ws->pxContext);
            DBG(dbg) << "setcurrent pixmap ret: "<<ret<<"\n";
-           throw "Can't draw into pixmap";
+           if(!ret) throw "Can't draw into pixmap";
            return ret;
        }
        bool releaseCurrent() {
            DBG(dbg) << "Releasecurrent pixmap "<<pix<<" "<<ws->pxContext<<"\n";
            bool ret = glXMakeContextCurrent(ws->dpy, None, None, NULL);
            DBG(dbg) << "Releasecurrent pixmap ret: "<<ret<<"\n";
-           throw "Can't draw into pixmap";
+           if(!ret)throw "Can't draw into pixmap";
            return ret;
        }
 
@@ -424,14 +424,14 @@
            DBG(dbg) << "setcurrent pbuf "<<pbuf<<" "<<ws->pbContext<<"\n";
            bool ret = glXMakeContextCurrent(ws->dpy, pbuf, pbuf, 
ws->pbContext);
            DBG(dbg) << "setcurrent pbuf ret: "<<ret<<"\n";
-           throw "Can't draw into pbuf";
+           if(!ret) throw "Can't draw into pbuf";
            return ret;
        }
        bool releaseCurrent() {
            DBG(dbg) << "Releasecurrent pbuf "<<pbuf<<" "<<ws->pbContext<<"\n";
            bool ret = glXMakeContextCurrent(ws->dpy, None, None, NULL);
            DBG(dbg) << "Releasecurrent pbuf ret: "<<ret<<"\n";
-           throw "Can't draw into pbuf";
+           if(!ret) throw "Can't draw into pbuf";
            return ret;
        }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]