Skip to content

Commit

Permalink
Merge #90
Browse files Browse the repository at this point in the history
90: Fix malloc typo in examples r=grovesNL a=DevOrc



Co-authored-by: Noah Charlton <ncharlton002@gmail.com>
  • Loading branch information
bors[bot] and ncharlton02 authored Apr 24, 2021
2 parents bb333ca + 652927c commit f534de7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/framework.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ WGPUShaderModuleDescriptor load_wgsl(const char *name) {
fclose(file);
bytes[length] = NULL;

WGPUShaderModuleWGSLDescriptor *wgslDescriptor = malloc(sizeof(WGPUShaderModuleSPIRVDescriptor));
WGPUShaderModuleWGSLDescriptor *wgslDescriptor = malloc(sizeof(WGPUShaderModuleWGSLDescriptor));
wgslDescriptor->chain.next = NULL;
wgslDescriptor->chain.sType = WGPUSType_ShaderModuleWGSLDescriptor;
wgslDescriptor->source = (const char*) bytes;
Expand Down

0 comments on commit f534de7

Please sign in to comment.