@ Removed redundant ApplySettings() on shader used in visual mode RenderSinglePass()

This commit is contained in:
codeimp 2009-05-03 20:05:08 +00:00
parent 634efc6ee4
commit 6f5f441ea6

View file

@ -543,7 +543,6 @@ namespace CodeImp.DoomBuilder.Rendering
// Apply texture
graphics.Device.SetTexture(0, curtexture.Texture);
graphics.Shaders.World3D.Texture1 = curtexture.Texture;
graphics.Shaders.World3D.ApplySettings();
// Go for all geometry that uses this texture
VisualSector sector = null;
@ -625,7 +624,6 @@ namespace CodeImp.DoomBuilder.Rendering
// Apply texture
graphics.Device.SetTexture(0, curtexture.Texture);
graphics.Shaders.World3D.Texture1 = curtexture.Texture;
graphics.Shaders.World3D.ApplySettings();
// Render all things with this texture
foreach(VisualThing t in group.Value)