Changeset 46174 in vbox for trunk/src/VBox/GuestHost
- Timestamp:
- May 20, 2013 12:17:39 PM (12 years ago)
- Location:
- trunk/src/VBox/GuestHost/OpenGL
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/include/state/cr_texture.h
r41057 r46174 243 243 DECLEXPORT(GLuint) STATE_APIENTRY crStateGetTextureObjHWID(CRTextureObj *tobj); 244 244 245 void crStateRegTextures(GLsizei n, GLuint *names); 246 245 247 #ifdef __cplusplus 246 248 } -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_texture.c
r45488 r46174 636 636 } 637 637 638 void crStateRegTextures(GLsizei n, GLuint *names) 639 { 640 CRContext *g = GetCurrentContext(); 641 crStateRegNames(g, g->shared->textureTable, n, names); 642 } 643 638 644 void crStateGenNames(CRContext *g, CRHashTable *table, GLsizei n, GLuint *names) 639 645 { … … 782 788 GLuint name = textures[i]; 783 789 CRTextureObj *tObj; 790 if (!name) 791 continue; 792 784 793 GET_TOBJ(tObj, g, name); 785 if ( name &&tObj)794 if (tObj) 786 795 { 787 796 GLuint j; … … 806 815 crHashtableDelete(g->shared->textureTable, name, (CRHashtableCallback)crStateDeleteTextureObject); 807 816 } 817 else 818 { 819 /* call crHashtableDelete in any way, to ensure the allocated key is freed */ 820 Assert(crHashtableIsKeyUsed(g->shared->textureTable, name)); 821 crHashtableDelete(g->shared->textureTable, name, NULL); 822 } 808 823 } 809 824 … … 896 911 { 897 912 #ifdef IN_GUEST 913 Assert(crHashtableIsKeyUsed(g->shared->textureTable, texture)); 898 914 if (used) 899 915 { … … 997 1013 if (!tobj) 998 1014 { 1015 Assert(crHashtableIsKeyUsed(g->shared->textureTable, texture)); 999 1016 tobj = crStateTextureAllocate_t(g, texture); 1000 1017 } … … 3303 3320 { 3304 3321 CRContext *g = GetCurrentContext(); 3305 CRTextureObj *tobj = GET_TOBJ(tobj, g, id); 3322 CRTextureObj *tobj; 3323 3324 GET_TOBJ(tobj, g, id); 3306 3325 3307 3326 #ifdef DEBUG_misha
Note:
See TracChangeset
for help on using the changeset viewer.