Changeset 22535 in vbox for trunk/src/VBox/HostServices/SharedOpenGL
- Timestamp:
- Aug 27, 2009 4:03:29 PM (15 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_gentextures.c
r22319 r22535 23 23 * That wasn't the case before snapshot loading, because we could just rely on host video drivers. 24 24 * Now we could have a set of loaded texture IDs which aren't already reserved in the host driver. 25 * Note: It seems, that it's easy to reserve ATI/NVidia IDs, by simply calling glGenTextures 25 * Note: It seems, that it's easy to reserve ATI/NVidia IDs, by simply calling glGenTextures 26 26 * with n==number of loaded textures. But it's really implementation dependant. So can't rely that it'll not change. 27 27 */ … … 87 87 } 88 88 89 void SERVER_DISPATCH_APIENTRY 89 void SERVER_DISPATCH_APIENTRY 90 90 crServerDispatchCopyTexImage2D(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) 91 91 { … … 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 & compared 100 * against the method params width & height! */ 98 101 if (((tw!=width) || (th!=height)) && (internalFormat==GL_DEPTH_COMPONENT24)) 99 102 { -
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_shaders.c
r20511 r22535 44 44 GLint hasNonLocalLen = READ_DATA(16, GLsizei); 45 45 GLint *pLocalLength = DATA_POINTER(20, GLint); 46 c har **ppStrings = NULL;46 const char **ppStrings = NULL; 47 47 GLsizei i; 48 48 int pos=20+count*sizeof(*pLocalLength);
Note:
See TracChangeset
for help on using the changeset viewer.