summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gpu.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/gpu.c b/src/gpu.c
index c7b7aa0..7f667a0 100644
--- a/src/gpu.c
+++ b/src/gpu.c
@@ -167,21 +167,16 @@ void ta_gpu_end_frame(void) {
ta_gpu_upload_text(ta_gpu_command_buffer);
ta_screen_upload(ta_gpu_command_buffer);
- float red = 0.0f;
- float green = 0.0f;
- float blue = 0.0f;
- float alpha = 1.0f;
-
SDL_GPUColorTargetInfo color_target = {
.texture = ta_gpu_msaa_texture,
.load_op = SDL_GPU_LOADOP_CLEAR,
.store_op = SDL_GPU_STOREOP_RESOLVE,
.resolve_texture = ta_gpu_swapchain_texture,
.clear_color = {
- red,
- green,
- blue,
- alpha
+ ta_color_black.red,
+ ta_color_black.green,
+ ta_color_black.blue,
+ ta_color_black.alpha
},
};