- 時間撮記:
- 2013-5-20 下午12:17:39 (12 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
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
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器