Skip to content

Commit

Permalink
Dispose SpecularMap (dotnet#589)
Browse files Browse the repository at this point in the history
Also fixing a comment to say texture 1 instead of texture 10
  • Loading branch information
Zygahedron authored Aug 22, 2021
1 parent c1c1922 commit 0a054f1
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ private static unsafe void OnRender(double deltaTime)

//Bind the diffuse map and and set to use texture0.
DiffuseMap.Bind(TextureUnit.Texture0);
//Bind the diffuse map and and set to use texture10.
//Bind the diffuse map and and set to use texture1.
SpecularMap.Bind(TextureUnit.Texture1);

//Setup the coordinate systems for our view
Expand Down Expand Up @@ -245,6 +245,7 @@ private static void OnClose()
LightingShader.Dispose();
LampShader.Dispose();
DiffuseMap.Dispose();
SpecularMap.Dispose();
}

private static void KeyDown(IKeyboard keyboard, Key key, int arg3)
Expand All @@ -255,4 +256,4 @@ private static void KeyDown(IKeyboard keyboard, Key key, int arg3)
}
}
}
}
}

0 comments on commit 0a054f1

Please sign in to comment.