diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-07-27 19:20:56 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-27 19:20:56 +0200 |
commit | a7810253566384804e469bd78b00fde24b09fef0 (patch) | |
tree | b2977779bbce2c27d133b543632e9956ae770aeb /src | |
parent | cfac80d6fcf1cd71ece56614f3c470ad21965536 (diff) |
float > int
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 7024339..62450ee 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1662,7 +1662,7 @@ void CMainApplication::AddCubeToScene( const glm::mat4 &mat, std::vector<float> } cursor_scale_uniform[0] = 0.01 * cursor_scale; - cursor_scale_uniform[1] = cursor_scale_uniform[0] * arrow_ratio * ((float)arrow_image_height / (float)(arrow_image_width == 0.0f ? 1.0f : arrow_image_width)); + cursor_scale_uniform[1] = cursor_scale_uniform[0] * arrow_ratio * ((float)arrow_image_height / (float)(arrow_image_width == 0 ? 1 : arrow_image_width)); glUseProgram( m_unSceneProgramID ); glUniform2fv(m_nArrowSizeLocation, 1, &cursor_scale_uniform[0]); |