Skip to content

Commit

Permalink
Free patch constant signatures (issue #32)
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Jones committed Sep 17, 2014
1 parent 0ee8af6 commit 831e1cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/reflect.c
Original file line number Diff line number Diff line change
Expand Up @@ -900,13 +900,15 @@ void FreeShaderInfo(ShaderInfo* psShaderInfo)
hlslcc_free(psShaderInfo->psClassTypes);
hlslcc_free(psShaderInfo->psClassInstances);
hlslcc_free(psShaderInfo->psOutputSignatures);
hlslcc_free(psShaderInfo->psPatchConstantSignatures);

psShaderInfo->ui32NumInputSignatures = 0;
psShaderInfo->ui32NumResourceBindings = 0;
psShaderInfo->ui32NumConstantBuffers = 0;
psShaderInfo->ui32NumClassTypes = 0;
psShaderInfo->ui32NumClassInstances = 0;
psShaderInfo->ui32NumOutputSignatures = 0;
psShaderInfo->ui32NumPatchConstantSignatures = 0;
}

typedef struct ConstantTableD3D9_TAG
Expand Down

0 comments on commit 831e1cf

Please sign in to comment.