Skip to content

Commit

Permalink
Temporary workaround for XNA not actually applying shader variable ch…
Browse files Browse the repository at this point in the history
…anges (?????????)
  • Loading branch information
kg committed Apr 21, 2016
1 parent 1cfd057 commit fe0ac43
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Squared/RenderLib/RenderBitmaps.cs
Expand Up @@ -545,9 +545,13 @@ private enum PrepareState : int {
device.SamplerStates[0] = SamplerState;
device.SamplerStates[1] = SamplerState2;

// FIXME: What is going wrong with XNA here?
paramTexture1.SetValue((Texture2D)null);
paramTexture1.SetValue(tex1);
if (paramTexture2 != null)
if (paramTexture2 != null) {
paramTexture2.SetValue((Texture2D)null);
paramTexture2.SetValue(currentTexture.Texture2);
}

var vSize = new Vector2(tex1.Width, tex1.Height);
paramSize.SetValue(vSize);
Expand Down

0 comments on commit fe0ac43

Please sign in to comment.