Skip to content

Commit b177189

Browse files
committed
xrRender: Clang is more strict with integer narrowing
1 parent 5365fe6 commit b177189

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Layers/xrRender/dxConsoleRender.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ void dxConsoleRender::OnRender(bool bGame)
1414
{
1515
VERIFY(HW.pDevice);
1616

17-
D3DRECT R = {0, 0, Device.dwWidth, Device.dwHeight};
17+
D3DRECT R = {0, 0, static_cast<LONG>(Device.dwWidth), static_cast<LONG>(Device.dwHeight)};
1818
if (bGame)
1919
R.y2 /= 2;
2020

src/Layers/xrRenderGL/glState.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ void glState::UpdateSamplerState(u32 stage, u32 name, u32 value)
226226
break;
227227
case D3DSAMP_BORDERCOLOR: /* D3DCOLOR */
228228
{
229-
GLint color[] = {color_get_R(value), color_get_G(value), color_get_B(value), color_get_A(value)};
230-
CHK_GL(glSamplerParameteriv(m_samplerArray[stage], GL_TEXTURE_BORDER_COLOR, color));
229+
GLuint color[] = {color_get_R(value), color_get_G(value), color_get_B(value), color_get_A(value)};
230+
CHK_GL(glSamplerParameterIuiv(m_samplerArray[stage], GL_TEXTURE_BORDER_COLOR, color));
231231
}
232232
break;
233233
case D3DSAMP_MAGFILTER: /* D3DTEXTUREFILTER filter to use for magnification */

0 commit comments

Comments
 (0)