[vbox-dev] svn commit r20097 clashes with nVidia's version of opengl

Leonid leonid.lobachev at sun.com
Tue Jun 2 08:15:15 GMT 2009


Leonid <leonid.lobachev at ...> writes:

> 
> Thanks, got your info. Will take a closer look at it tomorrow.
> 
> 


Could you post log file for the failing run with the following changes applied 
please:

Index: vbox/src/VBox/HostServices/SharedOpenGL/render/renderspu_glx.c
===================================================================
--- vbox/src/VBox/HostServices/SharedOpenGL/render/renderspu_glx.c	
(revision 47987)
+++ vbox/src/VBox/HostServices/SharedOpenGL/render/renderspu_glx.c	
(working copy)
@@ -1178,7 +1178,7 @@
     CRASSERT(render_spu.ws.glXMakeCurrent);
     window->appWindow = nativeWindow;
 
-    /*crDebug("%s nativeWindow=0x%x", __FUNCTION__, (int) nativeWindow);*/
+    crDebug("%s nativeWindow=0x%x", __FUNCTION__, (int) nativeWindow);
 
 #ifdef USE_OSMESA
     if (render_spu.use_osmesa) {
@@ -1316,7 +1316,7 @@
         {
             /* This is the normal case - rendering to the render SPU's own 
window */
             CRASSERT(window->window);
-#if 0
+#if 1
             crDebug("calling glXMakecurrent(%p, 0x%x, 0x%x)",
                                     window->visual->dpy,
                                     (int) window->window, (int) context-
>context );
Index: vbox/src/VBox/HostServices/SharedOpenGL/render/renderspu_init.c
===================================================================
--- vbox/src/VBox/HostServices/SharedOpenGL/render/renderspu_init.c	
(revision 47987)
+++ vbox/src/VBox/HostServices/SharedOpenGL/render/renderspu_init.c	
(working copy)
@@ -260,7 +260,9 @@
     defaultCtx = renderspuCreateContext( NULL, render_spu.default_visual, 0 );
     CRASSERT(defaultCtx == 0);
 
+    crDebug("init->renderspuMakeCurrent");
     renderspuMakeCurrent( defaultWin, 0, defaultCtx );
+    crDebug("init<-renderspuMakeCurrent");
 
     /* Get windowInfo for the default window */
     windowInfo = (WindowInfo *) crHashtableSearch(render_spu.windowTable, 0);
@@ -273,7 +275,9 @@
      * extensions, because the context has to be bound before
      * wglGetProcAddress will work correctly.  No such issue with GLX though.
      */
+    crDebug("init->crLoadOpenGLExtensions");
     numFuncs += crLoadOpenGLExtensions( &render_spu.ws, _cr_render_table + 
numFuncs );
+    crDebug("init<-crLoadOpenGLExtensions");
     CRASSERT(numFuncs < 1000);
 
 #ifdef WINDOWS


Thanks, Leonid.





More information about the vbox-dev mailing list