Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
09cafcc3
Commit
09cafcc3
authored
Jan 04, 2023
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jan 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Clamp the bound buffer range to the buffer size.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=53671
parent
95b96a4a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
state.c
dlls/wined3d/state.c
+3
-1
No files found.
dlls/wined3d/state.c
View file @
09cafcc3
...
@@ -4618,7 +4618,9 @@ static void state_cb(struct wined3d_context *context, const struct wined3d_state
...
@@ -4618,7 +4618,9 @@ static void state_cb(struct wined3d_context *context, const struct wined3d_state
buffer
=
buffer_state
->
buffer
;
buffer
=
buffer_state
->
buffer
;
bo_gl
=
wined3d_bo_gl
(
buffer
->
buffer_object
);
bo_gl
=
wined3d_bo_gl
(
buffer
->
buffer_object
);
GL_EXTCALL
(
glBindBufferRange
(
GL_UNIFORM_BUFFER
,
base
+
i
,
GL_EXTCALL
(
glBindBufferRange
(
GL_UNIFORM_BUFFER
,
base
+
i
,
bo_gl
->
id
,
bo_gl
->
b
.
buffer_offset
+
buffer_state
->
offset
,
buffer_state
->
size
));
bo_gl
->
id
,
bo_gl
->
b
.
buffer_offset
+
buffer_state
->
offset
,
min
(
buffer_state
->
size
,
buffer
->
resource
.
size
-
buffer_state
->
offset
)));
buffer
->
bo_user
.
valid
=
true
;
buffer
->
bo_user
.
valid
=
true
;
}
}
checkGLcall
(
"bind constant buffers"
);
checkGLcall
(
"bind constant buffers"
);
...
...
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