Changeset 16640 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Feb 10, 2009 3:37:23 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 42620
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/crOpenGL
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/crOpenGL/context.c
r16480 r16640 275 275 #endif 276 276 277 #ifdef GLX 278 context->pGLXPixmapsHash = crAllocHashtable(); 279 #endif 280 277 281 crHashtableAdd(stub.contextTable, context->id, (void *) context); 278 282 … … 1002 1006 } 1003 1007 1008 #ifdef GLX 1009 crFreeHashtable(context->pGLXPixmapsHash, crFree); 1010 #endif 1011 1004 1012 crMemZero(context, sizeof(ContextInfo)); /* just to be safe */ 1005 1013 crHashtableDelete(stub.contextTable, contextId, crFree); -
trunk/src/VBox/Additions/WINNT/Graphics/crOpenGL/load.c
r16480 r16640 207 207 208 208 crNetTearDown(); 209 210 #ifdef GLX 211 if (stub.xshmSI.shmid>=0) 212 { 213 shmctl(stub.xshmSI.shmid, IPC_RMID, 0); 214 shmdt(stub.xshmSI.shmaddr); 215 } 216 #endif 209 217 210 218 crMemset(&stub, 0, sizeof(stub) ); … … 541 549 #endif 542 550 551 #ifdef GLX 552 stub.xshmSI.shmid = -1; 553 stub.bShmInitFailed = GL_FALSE; 554 #endif 555 543 556 return true; 544 557 } -
trunk/src/VBox/Additions/WINNT/Graphics/crOpenGL/pack/packspu_config.c
r15532 r16640 54 54 pack_spu.swapbuffer_sync = 0; 55 55 pack_spu.name = crStrdup("vboxhgcm://llp:7000"); 56 pack_spu.buffer_size = 1024 * 1024;56 pack_spu.buffer_size = 5 * 1024 * 1024; 57 57 } -
trunk/src/VBox/Additions/WINNT/Graphics/crOpenGL/stub.h
r16574 r16640 39 39 #include "cr_threads.h" 40 40 #include "spu_dispatch_table.h" 41 42 #ifdef GLX 43 #include <X11/extensions/XShm.h> 44 #include <sys/shm.h> 45 #endif 41 46 42 47 … … 60 65 typedef struct window_info_t WindowInfo; 61 66 67 #ifdef GLX 68 typedef struct glxpixmap_info_t GLX_Pixmap_t; 69 70 struct glxpixmap_info_t 71 { 72 int x, y; 73 unsigned int w, h, border, depth; 74 Window root; 75 GC gc; 76 Pixmap pixmap; 77 void *data; 78 }; 79 #endif 80 62 81 struct context_info_t 63 82 { … … 91 110 Bool direct; 92 111 GLXContext glxContext; 112 CRHashTable *pGLXPixmapsHash; 93 113 #endif 94 114 }; … … 175 195 CRHashTable *windowTable; 176 196 197 #ifdef GLX 198 /* Shared memory, used to transfer XServer pixmaps data into client memory */ 199 XShmSegmentInfo xshmSI; 200 GLboolean bShmInitFailed; 201 #endif 202 177 203 #ifdef WINDOWS 178 204 HHOOK hMessageHook;
Note:
See TracChangeset
for help on using the changeset viewer.