Changeset 22319 in vbox for trunk/src/VBox/HostServices/SharedOpenGL
- Timestamp:
- Aug 18, 2009 11:12:15 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_gentextures.c
r15532 r22319 86 86 crFree( local_progs ); 87 87 } 88 89 void SERVER_DISPATCH_APIENTRY 90 crServerDispatchCopyTexImage2D(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) 91 { 92 GLsizei tw, th; 93 94 cr_server.head_spu->dispatch_table.GetTexLevelParameteriv(target, level, GL_TEXTURE_WIDTH, &width); 95 cr_server.head_spu->dispatch_table.GetTexLevelParameteriv(target, level, GL_TEXTURE_HEIGHT, &height); 96 97 /* Workaround for a wine or ati bug. Host drivers crash unless we first provide texture bounds. */ 98 if (((tw!=width) || (th!=height)) && (internalFormat==GL_DEPTH_COMPONENT24)) 99 { 100 crServerDispatchTexImage2D(target, level, internalFormat, width, height, border, GL_DEPTH_COMPONENT, GL_UNSIGNED_BYTE, NULL); 101 } 102 103 cr_server.head_spu->dispatch_table.CopyTexImage2D(target, level, internalFormat, x, y, width, height, border); 104 }
Note:
See TracChangeset
for help on using the changeset viewer.