Changeset 22538 in vbox for trunk/src/VBox/HostServices/SharedOpenGL
- Timestamp:
- Aug 27, 2009 4:52:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_gentextures.c
r22535 r22538 92 92 GLsizei tw, th; 93 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);94 cr_server.head_spu->dispatch_table.GetTexLevelParameteriv(target, level, GL_TEXTURE_WIDTH, &tw); 95 cr_server.head_spu->dispatch_table.GetTexLevelParameteriv(target, level, GL_TEXTURE_HEIGHT, &th); 96 96 97 97 /* Workaround for a wine or ati bug. Host drivers crash unless we first provide texture bounds. */ 98 /* @todo: r=poetzsch: gcc warns here. tw & th is uninitialized in any case.99 * I guess they should be filled with the above two calls & compared100 * against the method params width & height! */101 98 if (((tw!=width) || (th!=height)) && (internalFormat==GL_DEPTH_COMPONENT24)) 102 99 {
Note:
See TracChangeset
for help on using the changeset viewer.