Clean-up and deinit proc

This commit is contained in:
2025-06-21 16:48:25 +02:00
parent 201a7ee742
commit 788775b0f3
6 changed files with 84 additions and 22 deletions

View File

@@ -334,7 +334,7 @@ compile_shader :: (name: string, source: string, entry_point: string, shader_mod
if FAILED(hr) {
free(bytecode);
if errors print ("Shader compilation error in shader '%': %\n", name, errors);
if errors print("Shader compilation error in shader '%': %", name, errors);
return "", null, hr;
}
@@ -865,7 +865,7 @@ create_backend_input_layout :: (using renderer: *D3D11_Backend, layout: [] Verte
hr := ID3D11Device_CreateInputLayout(d3d_device, d3d_layout.data, cast(u32) d3d_layout.count, shader.bytecode.data, cast(u64) shader.bytecode.count, *vertex_layout);
if FAILED(hr) {
log_error("CreateInputLayout failed: %", hr);
//log_error("CreateInputLayout failed: %", hr);
return null;
}