Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/workbench/workbench_effect_antialiasing.c
| Show First 20 Lines • Show All 260 Lines • ▼ Show 20 Lines | if (txl->smaa_search_tx == NULL) { | ||||
| 2, | 2, | ||||
| areaTexBytes, | areaTexBytes, | ||||
| GPU_RG8, | GPU_RG8, | ||||
| GPU_DATA_UNSIGNED_BYTE, | GPU_DATA_UNSIGNED_BYTE, | ||||
| 0, | 0, | ||||
| false, | false, | ||||
| NULL); | NULL); | ||||
| GPU_texture_bind(txl->smaa_search_tx, 0); | |||||
| GPU_texture_filter_mode(txl->smaa_search_tx, true); | GPU_texture_filter_mode(txl->smaa_search_tx, true); | ||||
| GPU_texture_unbind(txl->smaa_search_tx); | |||||
| GPU_texture_bind(txl->smaa_area_tx, 0); | |||||
| GPU_texture_filter_mode(txl->smaa_area_tx, true); | GPU_texture_filter_mode(txl->smaa_area_tx, true); | ||||
| GPU_texture_unbind(txl->smaa_area_tx); | |||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| /* Cleanup */ | /* Cleanup */ | ||||
| DRW_TEXTURE_FREE_SAFE(txl->history_buffer_tx); | DRW_TEXTURE_FREE_SAFE(txl->history_buffer_tx); | ||||
| DRW_TEXTURE_FREE_SAFE(txl->depth_buffer_tx); | DRW_TEXTURE_FREE_SAFE(txl->depth_buffer_tx); | ||||
| DRW_TEXTURE_FREE_SAFE(txl->depth_buffer_in_front_tx); | DRW_TEXTURE_FREE_SAFE(txl->depth_buffer_in_front_tx); | ||||
| DRW_TEXTURE_FREE_SAFE(txl->smaa_search_tx); | DRW_TEXTURE_FREE_SAFE(txl->smaa_search_tx); | ||||
| ▲ Show 20 Lines • Show All 209 Lines • Show Last 20 Lines | |||||