VirtualBox

Ignore:
Timestamp:
May 15, 2012 1:46:10 PM (13 years ago)
Author:
vboxsync
Message:

crOpenGL: some comments & warning fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_texture.c

    r41109 r41313  
    766766            crStateCleanupTextureRefs(g, tObj);
    767767
    768             crHashtableDelete(g->shared->textureTable, name, crStateDeleteTextureObject);
     768            /* on the host side, ogl texture object is deleted by a separate cr_server.head_spu->dispatch_table.DeleteTextures(n, newTextures);
     769             * in crServerDispatchDeleteTextures, we just delete a state object here, which crStateDeleteTextureObject does */
     770            crHashtableDelete(g->shared->textureTable, name, (CRHashtableCallback)crStateDeleteTextureObject);
    769771        }
    770772    }
     
    874876
    875877        if (!CR_STATE_SHAREDOBJ_USAGE_IS_USED(tobj))
     878        {
     879            /* on the host side, we need to delete an ogl texture object here as well, which crStateDeleteTextureCallback will do
     880             * in addition to calling crStateDeleteTextureObject to delete a state object */
    876881            crHashtableDelete(g->shared->textureTable, texture, crStateDeleteTextureCallback);
     882        }
    877883
    878884        DIRTY(tb->dirty, g->neg_bitid);
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