Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Ketsji/BL_Texture.cpp
| Context not available. | |||||
| #include "DNA_texture_types.h" | #include "DNA_texture_types.h" | ||||
| #include "DNA_image_types.h" | #include "DNA_image_types.h" | ||||
| #include "IMB_imbuf_types.h" | #include "DNA_imbuf_types.h" | ||||
| #include "BKE_image.h" | #include "BKE_image.h" | ||||
| #include "BLI_blenlib.h" | #include "BLI_blenlib.h" | ||||
| Context not available. | |||||
| return mOk; | return mOk; | ||||
| } | } | ||||
| ibuf= BKE_image_acquire_ibuf(img, NULL, NULL); | ibuf= BKE_image_acquire_ibuf(img, NULL, NULL, IMA_IBUF_IMA); | ||||
| if (ibuf==NULL) | if (ibuf==NULL) | ||||
| { | { | ||||
| img->ok = 0; | img->ok = 0; | ||||
| Context not available. | |||||
| return mOk; | return mOk; | ||||
| } | } | ||||
| ImBuf *ibuf= BKE_image_acquire_ibuf(cubemap->ima, NULL, NULL); | ImBuf *ibuf= BKE_image_acquire_ibuf(cubemap->ima, NULL, NULL, IMA_IBUF_IMA); | ||||
| if (ibuf==0) | if (ibuf==0) | ||||
| { | { | ||||
| cubemap->ima->ok = 0; | cubemap->ima->ok = 0; | ||||
| Context not available. | |||||
| void BL_Texture::SplitEnvMap(EnvMap *map) | void BL_Texture::SplitEnvMap(EnvMap *map) | ||||
| { | { | ||||
| if (!map || !map->ima || (map->ima && !map->ima->ok)) return; | if (!map || !map->ima || (map->ima && !map->ima->ok)) return; | ||||
| ImBuf *ibuf= BKE_image_acquire_ibuf(map->ima, NULL, NULL); | ImBuf *ibuf= BKE_image_acquire_ibuf(map->ima, NULL, NULL, IMA_IBUF_IMA); | ||||
| if (ibuf) { | if (ibuf) { | ||||
| my_envmap_split_ima(map, ibuf); | my_envmap_split_ima(map, ibuf); | ||||
| BKE_image_release_ibuf(map->ima, ibuf, NULL); | BKE_image_release_ibuf(map->ima, ibuf, NULL); | ||||
| Context not available. | |||||