Commit eca4dba9 authored by Laszlo Agocs's avatar Laszlo Agocs

gl: Fix broken stencil clears

parent d2f942a4
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment