Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
58c680ba
Commit
58c680ba
authored
Mar 15, 2024
by
Zebediah Figura
Committed by
Alexandre Julliard
Mar 26, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Recreate buffer textures when renaming the existing buffer storage.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=56438
parent
4e13c72f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
d3d11.c
dlls/d3d11/tests/d3d11.c
+1
-1
view.c
dlls/wined3d/view.c
+10
-0
No files found.
dlls/d3d11/tests/d3d11.c
View file @
58c680ba
...
...
@@ -36148,7 +36148,7 @@ static void test_high_resource_count(void)
ID3D11DeviceContext_Unmap
(
context
,
(
ID3D11Resource
*
)
buffers
[
1
],
0
);
draw_quad
(
&
test_context
);
todo_wine_if
(
!
damavand
)
check_texture_vec4
(
rt
,
&
expect2
,
0
);
check_texture_vec4
(
rt
,
&
expect2
,
0
);
ID3D11Texture2D_Release
(
rt
);
ID3D11RenderTargetView_Release
(
rtv
);
dlls/wined3d/view.c
View file @
58c680ba
...
...
@@ -269,7 +269,17 @@ static void create_buffer_texture(struct wined3d_gl_view *view, struct wined3d_c
view
->
target
=
GL_TEXTURE_BUFFER
;
if
(
!
view
->
name
)
{
gl_info
->
gl_ops
.
gl
.
p_glGenTextures
(
1
,
&
view
->
name
);
}
else
if
(
gl_info
->
supported
[
ARB_BINDLESS_TEXTURE
])
{
/* If we already bound this view to a shader, we acquired a handle to
* it, and it's now immutable. This means we can't bind a new buffer
* storage to it, so recreate the texture. */
gl_info
->
gl_ops
.
gl
.
p_glDeleteTextures
(
1
,
&
view
->
name
);
gl_info
->
gl_ops
.
gl
.
p_glGenTextures
(
1
,
&
view
->
name
);
}
wined3d_context_gl_bind_texture
(
context_gl
,
GL_TEXTURE_BUFFER
,
view
->
name
);
if
(
gl_info
->
supported
[
ARB_TEXTURE_BUFFER_RANGE
])
...
...
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