X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fview.cpp;h=db7a10019cbe58e1b27709aa433d263f6d14dedc;hp=c9aac368ab1a047aadacd9a6dc322d4be26f8eea;hb=070e5e119baa62352418dbc2dd1b0670b4da8dca;hpb=f4bba69cebb67c19cfe0725287f9c383b3d852c0;ds=sidebyside diff --git a/src/view.cpp b/src/view.cpp index c9aac36..db7a100 100644 --- a/src/view.cpp +++ b/src/view.cpp @@ -147,7 +147,7 @@ void View::Render(int width, int height) { if (m_use_gpu_transform) { - GLfloat glbounds[] = {Float(m_bounds.x), Float(m_bounds.y), Float(m_bounds.w), Float(m_bounds.h)}; + GLfloat glbounds[] = {static_cast(Float(m_bounds.x)), static_cast(Float(m_bounds.y)), static_cast(Float(m_bounds.w)), static_cast(Float(m_bounds.h))}; m_bounds_ubo.Upload(sizeof(float)*4, glbounds); } else