From: Kai R. <kre...@us...> - 2004-07-27 12:22:08
|
Update of /cvsroot/csdopenglnet/csdOpenGL/generator In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14527/generator Modified Files: gtkArea.cs gtkContext.cs Log Message: no idea Index: gtkContext.cs =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/generator/gtkContext.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** gtkContext.cs 27 Jul 2004 11:24:53 -0000 1.2 --- gtkContext.cs 27 Jul 2004 12:21:51 -0000 1.3 *************** *** 100,117 **** Debug.Unindent(); } ! public bool MakeCurrent( Window window ) { Debug.Indent(); Debug.WriteLine( "Entering GdkGLContext.MakeCurrent(Window)" ); ! if (window==null) Debug.WriteLine( "window not initialized" ); ! ! Debug.WriteLine( "gdk_x11_drawable_get_xid" ); ! int id = gdk_x11_drawable_get_xid( window.Handle ); ! Debug.WriteLine( "glXMakeCurrent" ); ! bool result = glXMakeCurrent( xdisplay, id, glxcontext ); ! Debug.WriteLine( "Exiting GdkGLContext.MakeCurrent(Window)*" ); ! Debug.Indent(); return result; --- 100,122 ---- Debug.Unindent(); } ! ! public bool MakeCurrent( Window window ) { Debug.Indent(); Debug.WriteLine( "Entering GdkGLContext.MakeCurrent(Window)" ); + bool result = false; ! if (window==null) { ! Debug.WriteLine( "window not initialized" ); ! result = false; ! } else { ! Debug.WriteLine( "gdk_x11_drawable_get_xid" ); ! int id = gdk_x11_drawable_get_xid( window.Handle ); ! Debug.WriteLine( "glXMakeCurrent" ); ! result = glXMakeCurrent( xdisplay, id, glxcontext ); ! Debug.WriteLine( "Exiting GdkGLContext.MakeCurrent(Window)*" ); ! Debug.Indent(); ! } return result; Index: gtkArea.cs =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/generator/gtkArea.cs,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** gtkArea.cs 12 Jul 2004 17:17:51 -0000 1.1.1.1 --- gtkArea.cs 27 Jul 2004 12:21:51 -0000 1.2 *************** *** 35,40 **** Debug.WriteLine( "Entering GtkGLArea(uint[])" ); Debug.Unindent(); ! } ! public bool MakeCurrent() { Debug.Indent(); --- 35,40 ---- Debug.WriteLine( "Entering GtkGLArea(uint[])" ); Debug.Unindent(); ! } ! public bool MakeCurrent() { Debug.Indent(); |