Changeset 32058 in vbox for trunk/src/VBox/GuestHost/OpenGL
- Timestamp:
- Aug 27, 2010 4:52:59 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 65315
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_texdiff.c
r31808 r32058 185 185 activeUnit = i; 186 186 } 187 if (from->unit[i].currentTexture1D-> id != to->unit[i].currentTexture1D->id)187 if (from->unit[i].currentTexture1D->hwid != to->unit[i].currentTexture1D->hwid) 188 188 { 189 189 diff_api.BindTexture(GL_TEXTURE_1D, crStateGetTextureObjHWID(to->unit[i].currentTexture1D)); … … 191 191 FILLDIRTY(tb->dirty); 192 192 } 193 if (from->unit[i].currentTexture2D-> id != to->unit[i].currentTexture2D->id)193 if (from->unit[i].currentTexture2D->hwid != to->unit[i].currentTexture2D->hwid) 194 194 { 195 195 diff_api.BindTexture(GL_TEXTURE_2D, crStateGetTextureObjHWID(to->unit[i].currentTexture2D)); … … 198 198 } 199 199 #ifdef CR_OPENGL_VERSION_1_2 200 if (from->unit[i].currentTexture3D->id != to->unit[i].currentTexture3D->id) { 200 if (from->unit[i].currentTexture3D->hwid != to->unit[i].currentTexture3D->hwid) 201 { 201 202 diff_api.BindTexture(GL_TEXTURE_3D, crStateGetTextureObjHWID(to->unit[i].currentTexture3D)); 202 203 FILLDIRTY(tb->current[i]); … … 206 207 #ifdef CR_ARB_texture_cube_map 207 208 if (fromCtx->extensions.ARB_texture_cube_map && 208 from->unit[i].currentTextureCubeMap->id != to->unit[i].currentTextureCubeMap->id) { 209 from->unit[i].currentTextureCubeMap->hwid != to->unit[i].currentTextureCubeMap->hwid) 210 { 209 211 diff_api.BindTexture(GL_TEXTURE_CUBE_MAP_ARB, crStateGetTextureObjHWID(to->unit[i].currentTextureCubeMap)); 210 212 FILLDIRTY(tb->current[i]); … … 214 216 #ifdef CR_NV_texture_rectangle 215 217 if (fromCtx->extensions.NV_texture_rectangle && 216 from->unit[i].currentTextureRect->id != to->unit[i].currentTextureRect->id) { 218 from->unit[i].currentTextureRect->hwid != to->unit[i].currentTextureRect->hwid) 219 { 217 220 diff_api.BindTexture(GL_TEXTURE_RECTANGLE_NV, crStateGetTextureObjHWID(to->unit[i].currentTextureRect)); 218 221 FILLDIRTY(tb->current[i]); … … 220 223 } 221 224 #endif 225 CLEARDIRTY(tb->current[i], nbitID); 222 226 } 223 227
Note:
See TracChangeset
for help on using the changeset viewer.