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
Laszlo Agocs
qtrhi
Commits
789124f7
Commit
789124f7
authored
Oct 28, 2018
by
Laszlo Agocs
Browse files
d3d: Fix skipping the last byte for static buffers
parent
12164c5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/rhi/qrhid3d11.cpp
View file @
789124f7
...
...
@@ -457,7 +457,7 @@ void QRhiD3D11::commitResourceUpdates(QRhiResourceUpdateBatch *resourceUpdates)
D3D11_BOX
box
;
box
.
left
=
box
.
top
=
box
.
front
=
0
;
box
.
back
=
box
.
bottom
=
1
;
box
.
right
=
u
.
data
.
size
()
-
1
;
box
.
right
=
u
.
data
.
size
()
;
// no -1: right, bottom, back are exclusive, see D3D11_BOX doc
context
->
UpdateSubresource
(
bufD
->
buffer
,
0
,
&
box
,
u
.
data
.
constData
(),
0
,
0
);
}
}
...
...
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