Clean-up and deinit proc
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user