mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-26 08:26:50 +00:00
Compile/warning fixes
This commit is contained in:
@@ -1845,7 +1845,7 @@ void WrappedOpenGL::RenderOverlayStr(float x, float y, const char *text)
|
||||
}
|
||||
else
|
||||
{
|
||||
gl.glViewport(0.0f, 0.0f, (float)m_InitParams.width, (float)m_InitParams.height);
|
||||
gl.glViewport(0, 0, m_InitParams.width, m_InitParams.height);
|
||||
gl.glDisable(eGL_SCISSOR_TEST);
|
||||
}
|
||||
gl.glPolygonMode(eGL_FRONT_AND_BACK, eGL_FILL);
|
||||
|
||||
@@ -1294,7 +1294,8 @@ void GLRenderState::ApplyState(void *ctx, WrappedOpenGL *gl)
|
||||
}
|
||||
else
|
||||
{
|
||||
m_Real->glViewport(Viewports[0].x, Viewports[0].y, Viewports[0].width, Viewports[0].height);
|
||||
m_Real->glViewport((GLint)Viewports[0].x, (GLint)Viewports[0].y, (GLsizei)Viewports[0].width,
|
||||
(GLsizei)Viewports[0].height);
|
||||
|
||||
m_Real->glScissor(Scissors[0].x, Scissors[0].y, Scissors[0].width, Scissors[0].height);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user