Skip to content

Commit

Permalink
shaderInstanceInit: properly initialize structure (fix #535)
Browse files Browse the repository at this point in the history
  • Loading branch information
fincs committed Dec 16, 2023
1 parent c579a65 commit d0936b8
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions libctru/source/gpu/shaderProgram.c
Expand Up @@ -13,17 +13,9 @@ Result shaderInstanceInit(shaderInstance_s* si, DVLE_s* dvle)
{
if(!si || !dvle)return -1;

memset(si, 0, sizeof(*si));
si->dvle = dvle;

si->boolUniforms = 0;
si->boolUniformMask = 0;
si->intUniforms[0] = 0x00000000;
si->intUniforms[1] = 0x00000000;
si->intUniforms[2] = 0x00000000;
si->intUniforms[3] = 0x00000000;
si->float24Uniforms = NULL;
si->intUniformMask = 0;

int i;
DVLE_constEntry_s* cnst = dvle->constTableData;
if(cnst)
Expand Down

0 comments on commit d0936b8

Please sign in to comment.