mirror of
https://github.com/NoelFB/blah.git
synced 2024-11-28 16:58:57 +08:00
fixing float->int warning, make it explicit
This commit is contained in:
parent
241d863ac4
commit
227fb51105
|
@ -993,8 +993,8 @@ namespace Blah
|
|||
if (pass.has_scissor)
|
||||
{
|
||||
D3D11_RECT scissor = {
|
||||
pass.scissor.x, pass.scissor.y,
|
||||
pass.scissor.x + pass.scissor.w, pass.scissor.y + pass.scissor.h };
|
||||
(int)pass.scissor.x, (int)pass.scissor.y,
|
||||
(int)pass.scissor.x + (int)pass.scissor.w, (int)pass.scissor.y + (int)pass.scissor.h };
|
||||
|
||||
ctx->RSSetScissorRects(1, &scissor);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user