Cleanup: GPUTexture: Remove _ex suffix from texture creation

It isn't relevant anymore now that usage flags are mandatory.

Pull Request #105197
This commit is contained in:
2023-02-25 01:52:27 +01:00
committed by Gitea
parent 3d6578b33e
commit 9fb1f32f06
43 changed files with 358 additions and 370 deletions

View File

@@ -80,7 +80,7 @@ void immDrawPixelsTexScaledFullSize(const IMMDrawPixelsTexState *state,
const bool use_mipmap = use_filter && ((draw_width < img_w) || (draw_height < img_h));
const int mip_len = use_mipmap ? 9999 : 1;
GPUTexture *tex = GPU_texture_create_2d_ex(
GPUTexture *tex = GPU_texture_create_2d(
"immDrawPixels", img_w, img_h, mip_len, gpu_format, GPU_TEXTURE_USAGE_GENERAL, NULL);
const bool use_float_data = ELEM(gpu_format, GPU_RGBA16F, GPU_RGB16F, GPU_R16F);
@@ -170,7 +170,7 @@ void immDrawPixelsTexTiled_scaling_clipping(IMMDrawPixelsTexState *state,
eGPUDataFormat gpu_data = (use_float_data) ? GPU_DATA_FLOAT : GPU_DATA_UBYTE;
size_t stride = components * ((use_float_data) ? sizeof(float) : sizeof(uchar));
GPUTexture *tex = GPU_texture_create_2d_ex(
GPUTexture *tex = GPU_texture_create_2d(
"immDrawPixels", tex_w, tex_h, 1, gpu_format, GPU_TEXTURE_USAGE_GENERAL, NULL);
GPU_texture_filter_mode(tex, use_filter);