git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix all of the warnings, re-enable -Werror, etc.
[ipdf/code.git]
/
src
/
view.cpp
diff --git
a/src/view.cpp
b/src/view.cpp
index
c9aac36
..
db7a100
100644
(file)
--- 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<GLfloat>(Float(m_bounds.x)), static_cast<GLfloat>(Float(m_bounds.y)), static_cast<GLfloat>(Float(m_bounds.w)), static_cast<GLfloat>(Float(m_bounds.h)
)};
m_bounds_ubo.Upload(sizeof(float)*4, glbounds);
}
else
UCC
git Repository :: git.ucc.asn.au