Skip to content

Commit

Permalink
2d mesh fix for dx9ex
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvux committed Aug 27, 2012
1 parent ca5e245 commit b2c4217
Showing 1 changed file with 9 additions and 1 deletion.
Expand Up @@ -116,7 +116,15 @@ public void UpdateResource(IPluginOut ForPin, Device OnDevice)
meshes.Add(mesh);
}

Mesh merge = Mesh.Concatenate(OnDevice, meshes.ToArray(), MeshFlags.Use32Bit | MeshFlags.Managed);
Mesh merge = null;
if (OnDevice is DeviceEx)
{
merge = Mesh.Concatenate(OnDevice, meshes.ToArray(), MeshFlags.Use32Bit);
}
else
{
merge = Mesh.Concatenate(OnDevice, meshes.ToArray(), MeshFlags.Use32Bit | MeshFlags.Managed);
}

this.FMeshes.Add(OnDevice, merge);

Expand Down

0 comments on commit b2c4217

Please sign in to comment.