Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Laszlo Agocs
qtrhi
Commits
eca4dba9
Commit
eca4dba9
authored
Feb 20, 2019
by
Laszlo Agocs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gl: Fix broken stencil clears
parent
d2f942a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
src/rhi/qrhigles2.cpp
src/rhi/qrhigles2.cpp
+1
-3
No files found.
src/rhi/qrhigles2.cpp
View file @
eca4dba9
...
...
@@ -1377,10 +1377,8 @@ void QRhiGles2::executeCommandBuffer(QRhiCommandBuffer *cb)
f
->
glDepthMask
(
GL_TRUE
);
f
->
glClearDepthf
(
cmd
.
args
.
clear
.
d
);
}
if
(
cmd
.
args
.
clear
.
mask
&
GL_STENCIL_BUFFER_BIT
)
{
f
->
glStencilMask
(
GL_TRUE
);
if
(
cmd
.
args
.
clear
.
mask
&
GL_STENCIL_BUFFER_BIT
)
f
->
glClearStencil
(
cmd
.
args
.
clear
.
s
);
}
f
->
glClear
(
cmd
.
args
.
clear
.
mask
);
break
;
case
QGles2CommandBuffer
::
Command
::
BufferSubData
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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