Skip to content

Commit

Permalink
Fix #if VALIDATE_USAGE block in CommandList.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mellinoe committed Feb 13, 2018
1 parent 4ef9024 commit a6a8464
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Veldrid/CommandList.cs
Expand Up @@ -205,10 +205,9 @@ public void ClearColorTarget(uint index, RgbaFloat clearColor)
throw new VeldridException(
"ClearColorTarget index must be less than the current Framebuffer's color target count.");
}

#endif
ClearColorTargetCore(index, clearColor);
}
#endif

protected abstract void ClearColorTargetCore(uint index, RgbaFloat clearColor);

Expand Down Expand Up @@ -410,7 +409,7 @@ public void DrawIndexedIndirect(DeviceBuffer indirectBuffer, uint offset, uint d
ValidateIndirectOffset(offset);
ValidateIndirectStride(stride, Unsafe.SizeOf<IndirectDrawIndexedArguments>());
PreDrawValidation();

DrawIndexedIndirectCore(indirectBuffer, offset, drawCount, stride);
}

Expand Down

0 comments on commit a6a8464

Please sign in to comment.