Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
OpenFlipper-Free
Commits
41f6da5a
Commit
41f6da5a
authored
Oct 24, 2016
by
Jan Möbius
Browse files
gcc compiler warning
parent
ec87327f
Pipeline
#3325
passed with stage
in 37 minutes and 29 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ACG/GL/IRenderer.cc
View file @
41f6da5a
...
...
@@ -1461,8 +1461,8 @@ void IRenderer::renderLineThicknessGL42()
Texture2D
*
lineColorImg2D
=
0
;
TextureBuffer
*
lineColorImgBuf
=
0
;
GL
size
i
w
=
prevViewport_
[
2
],
h
=
prevViewport_
[
3
];
GL
size
i
lineBPP
=
useIntegerTexture
?
4
:
16
;
// bytes per pixel
size
_t
w
=
static_cast
<
size_t
>
(
prevViewport_
[
2
]
)
,
h
=
static_cast
<
size_t
>
(
prevViewport_
[
3
]
)
;
size
_t
lineBPP
=
static_cast
<
size_t
>
(
useIntegerTexture
?
4
:
16
)
;
// bytes per pixel
if
(
useBufferTexture
)
...
...
@@ -1491,7 +1491,7 @@ void IRenderer::renderLineThicknessGL42()
}
// resize
if
(
lineColorImg2D
->
getWidth
()
!=
w
||
lineColorImg2D
->
getHeight
()
!=
h
)
if
(
lineColorImg2D
->
getWidth
()
!=
static_cast
<
int
>
(
w
)
||
lineColorImg2D
->
getHeight
()
!=
static_cast
<
int
>
(
h
)
)
lineColorImg2D
->
setData
(
0
,
useIntegerTexture
?
GL_R32UI
:
GL_RGBA32F
,
w
,
h
,
...
...
ACG/GL/MeshCompiler.hh
View file @
41f6da5a
...
...
@@ -971,10 +971,10 @@ private:
// final buffers used for drawing
/// # vertices in vbo
in
t
numDrawVerts_
;
size_
t
numDrawVerts_
;
/// # isolated vertices
in
t
numIsolatedVerts_
;
size_
t
numIsolatedVerts_
;
/// index buffer
std
::
vector
<
int
>
indices_
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment