Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/movieclip.c
| Show First 20 Lines • Show All 2,106 Lines • ▼ Show 20 Lines | if (ibuf == NULL) { | ||||
| fprintf(stderr, "GPUTexture: Blender Texture Not Loaded!\n"); | fprintf(stderr, "GPUTexture: Blender Texture Not Loaded!\n"); | ||||
| *tex = GPU_texture_create_error(2, false); | *tex = GPU_texture_create_error(2, false); | ||||
| return *tex; | return *tex; | ||||
| } | } | ||||
| /* This only means RGBA16F instead of RGBA32F. */ | /* This only means RGBA16F instead of RGBA32F. */ | ||||
| const bool high_bitdepth = false; | const bool high_bitdepth = false; | ||||
| const bool store_premultiplied = ibuf->rect_float ? false : true; | const bool store_premultiplied = ibuf->rect_float ? false : true; | ||||
| *tex = IMB_create_gpu_texture(clip->id.name + 2, ibuf, high_bitdepth, store_premultiplied); | *tex = IMB_create_gpu_texture( | ||||
| clip->id.name + 2, ibuf, high_bitdepth, store_premultiplied, false); | |||||
| /* Do not generate mips for movieclips... too slow. */ | /* Do not generate mips for movieclips... too slow. */ | ||||
| GPU_texture_mipmap_mode(*tex, false, true); | GPU_texture_mipmap_mode(*tex, false, true); | ||||
| IMB_freeImBuf(ibuf); | IMB_freeImBuf(ibuf); | ||||
| return *tex; | return *tex; | ||||
| } | } | ||||
| Show All 22 Lines | |||||