VirtualBox

Ignore:
Timestamp:
Aug 27, 2009 4:03:29 PM (15 years ago)
Author:
vboxsync
Message:

crOpenGL: Removed some gcc warnings & added a todo.

Location:
trunk/src/VBox/HostServices/SharedOpenGL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_gentextures.c

    r22319 r22535  
    2323     * That wasn't the case before snapshot loading, because we could just rely on host video drivers.
    2424     * 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
    2626     * with n==number of loaded textures. But it's really implementation dependant. So can't rely that it'll not change.
    2727     */
     
    8787}
    8888
    89 void SERVER_DISPATCH_APIENTRY 
     89void SERVER_DISPATCH_APIENTRY
    9090crServerDispatchCopyTexImage2D(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
    9191{
     
    9696
    9797    /* 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! */
    98101    if (((tw!=width) || (th!=height)) && (internalFormat==GL_DEPTH_COMPONENT24))
    99102    {
  • trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_shaders.c

    r20511 r22535  
    4444    GLint hasNonLocalLen = READ_DATA(16, GLsizei);
    4545    GLint *pLocalLength = DATA_POINTER(20, GLint);
    46     char **ppStrings = NULL;
     46    const char **ppStrings = NULL;
    4747    GLsizei i;
    4848    int pos=20+count*sizeof(*pLocalLength);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette