Changeset 24816 in vbox for trunk/src/VBox/Additions/common/crOpenGL
- Timestamp:
- Nov 20, 2009 9:59:01 AM (15 years ago)
- Location:
- trunk/src/VBox/Additions/common/crOpenGL
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/glx.c
r18882 r24816 1869 1869 pGlxPixmap->depth = depth; 1870 1870 pGlxPixmap->root = root; 1871 pGlxPixmap->format = pGlxPixmap->depth==24 ? GL_RGB : GL_RGBA; 1871 1872 1872 1873 /* Try to allocate shared memory … … 1922 1923 if (CR_MAX_TRANSFER_SIZE < 4*pGlxPixmap->w*pGlxPixmap->h) 1923 1924 { 1924 stub.spu->dispatch_table.TexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, pGlxPixmap->w, pGlxPixmap->h, 0,1925 stub.spu->dispatch_table.TexImage2D(GL_TEXTURE_2D, 0, pGlxPixmap->format, pGlxPixmap->w, pGlxPixmap->h, 0, 1925 1926 GL_BGRA, GL_UNSIGNED_BYTE, NULL); 1926 1927 } … … 1967 1968 /* Have to make sure XCopyArea is processed */ 1968 1969 XSync(dpy, False); 1969 stub.spu->dispatch_table.TexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, pGlxPixmap->w, pGlxPixmap->h, 0,1970 stub.spu->dispatch_table.TexImage2D(GL_TEXTURE_2D, 0, pGlxPixmap->format, pGlxPixmap->w, pGlxPixmap->h, 0, 1970 1971 GL_BGRA, GL_UNSIGNED_BYTE, stub.xshmSI.shmaddr); 1971 1972 /*crDebug("Sync texture for drawable 0x%x(dmg handle 0x%x) [%i,%i,%i,%i]", … … 2126 2127 } 2127 2128 2128 stub.spu->dispatch_table.TexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, pxim->width, pxim->height, 0,2129 stub.spu->dispatch_table.TexImage2D(GL_TEXTURE_2D, 0, pGlxPixmap->format, pxim->width, pxim->height, 0, 2129 2130 GL_BGRA, GL_UNSIGNED_BYTE, (void*)(&(pxim->data[0]))); 2130 2131 XDestroyImage(pxim); -
trunk/src/VBox/Additions/common/crOpenGL/stub.h
r20616 r24816 73 73 int x, y; 74 74 unsigned int w, h, border, depth; 75 GLenum format; 75 76 Window root; 76 77 GC gc;
Note:
See TracChangeset
for help on using the changeset viewer.